static int countStringsLongerThan(Collection l, int minLength) { int n = 0; if (l != null) for (S s : l) if (l(s) > minLength) ++n; ret n; }