// determine whether a character is vowel public static boolean isVowel(char letter) { String vowels = "aeouiAEOUI"; return vowels.indexOf(letter) != -1; }