Question: write the method countVowels which tskes one String argument and returns the total number of vowels (just a, e, i, o, u) in the String.
write the method countVowels which tskes one String argument and returns the total number of vowels (just a, e, i, o, u) in the String. You must use indexOf in your code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
