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

 

soweigel@smsd.org java-advanced > findVowel
prev  |  next  |  chance

Return the position of the first vowel (not including y) in str. Return -1 if no vowell is found.


findVowel("string") → 3
findVowel("try") → -1
findVowel("Okay") → 0

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

public int findVowel(String str) { }

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: 250

Copyright Nick Parlante 2017 - privacy