static int maxLength(Collection l) { int n = 0; if (l != null) for (Collection c : l) n = max(n, l(c)); ret n; }