Question: * Creates a string that displays the first position of the letters a, e, i, * o, and u in sentence. If a vowel is

* Creates a string that displays the first position of the letters a, e, i, * o, and u in sentence. If a vowel is not located, it will report -1 as the * position. Hint: use indexOf to simplify things. * * *
* findVowels ("appleapp") would return * The first position of a is 0. The first position of eis 4. * The first position of i is -1. * The first position of ois -1. * The first position of u is -1. * * * * @param sentence != null and lowercase * @return */ public static String findVowels (String sentence) return "TODO: Write the body of this method so the test passes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
