Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

* 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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions