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

 

crehwinkel@frhsd.com > countVowels
prev  |  next  |  chance

Write a method called countVowels which takes a String as a parameter and which returns an integer representing how many vowels are in the input String. For example countVowels("break") would return 2 since there are 2 vowels in "break".


countVowels("zzzyyy") → 0
countVowels("banana") → 3
countVowels("onomatopedia") → 7

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

public int countVowels(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: 200

Copyright Nick Parlante 2017 - privacy