/** Returns {@code true} if {@code c} is in the set {@code "AEIOUaeiou"}. */ public static boolean isVowel(char c) { c = Character.toLowerCase(c); return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'; }