Write a method called isAllVowels that returns whether a string consists entirely of vowels (a, e, i,
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 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.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: