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

 

konstans@stuy.edu > countVowels
prev  |  next  |  chance

Given a string return the number of characters in the string that are vowels. Do not count Y as a vowel.


countVowels("") → 0
countVowels("fish") → 1
countVowels("fiiiish") → 4

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

int countVowels(String s){ }

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

Copyright Nick Parlante 2017 - privacy