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

* 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!