29.8k views
2 votes
write a recursive, boolean-valued method, containsvowel, that accepts a string and returns true if the string contains a vowel.

User Zenaphor
by
5.0k points

1 Answer

3 votes

Answer:

boolean containsVowel(String sentence) sentence.charAt(0) == 'u'

Step-by-step explanation:

User HerbCSO
by
4.6k points