boolean (String word) { if (word.length() == 0) return false; boolean lowCase = true; for (int i = 1; i < word.length() && lowCase; i++) { lowCase = Character.isLowerCase(word.charAt(i)); } return Character.isUpperCase(word.charAt(0)) && lowCase; }