← all problems

isVowel 🌶️

Write a method isVowel that returns true if the one-letter lowercase String letter is a vowel (a, e, i, o or u) and false if it is not. You do not need substring for this one: indexOf is enough. (Hint: search for the letter in the String "aeiou". What does indexOf return when the letter is not there?)