id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

simona1@sfusd.edu > findFirstVowel
prev  |  next  |  chance

Returns the index of the first vowel ('a', 'e', 'i', 'o' or 'u') in the String parameter (also called an argument). Returns -1 if the String parameter has no vowels. All letters in the String will be lowercase.


findFirstVowel("eagle") → 0
findFirstVowel("try") → -1
findFirstVowel("to") → 1

...Save, Compile, Run (ctrl-enter)

public int findFirstVowel(String word){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 195 Post-solution available

Copyright Nick Parlante 2017 - privacy