static int countLowerCaseCharacters(S s) { int n = 0; for i over s: if (isLowerCase(s.charAt(i)) ++n; ret n; }