Answer:
public static boolean isVowel(String word){
for(int i=0;i
char vowels= word.toLowerCase(word.charAt(i));
if (vowels== "a" || vowels == "e" || vowels== "i" || vowels == "o" || vowels == "u" ){
return true;
} else {
return false;
}
}
}
Step-by-step explanation:
The Java source code analyzes each character in a string object and returns true if it is a vowel letter.