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

1 Expert Approved Answer
Step: 1 Unlock

public static boolean isAllVowels String s for int i 0 i slength i String l... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!