Question: Write a method called isAllVowels that returns whether a string consists entirely of vowels (a, e, i, o, or u, case-insensitively). If and only if
Write a method called isAllVowels that returns whether a string consists entirely of vowels (a, e, i, o, or u, case-insensitively). If and only if every character of the string is a vowel, your method should return true . For example, the call isAllVowels("eIEiO") returns true and isAllVowels("oink") returns false . You should return true if passed the empty string, since it does not contain any nonvowel characters.
Step by Step Solution
3.52 Rating (176 Votes )
There are 3 Steps involved in it
public static boolean isAllVowels String s for int i 0 i slength i String l... View full answer
Get step-by-step solutions from verified subject matter experts
