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

 

jebbert@volusia.k12.fl.us > sameNumVowels
prev  |  next  |  chance

Write a method that has two string input parameters. Return true if they have the same number of vowels. Return false otherwise. Note that the strings can be any length and may have no vowels, all vowels, or any combination of vowels, consonants, and other symbols.


sameNumVowels("this is a test", "of your way cool code") → false
sameNumVowels("aeiouaeiouaeiou", "eeeexxxxxxxxxxxxxklwmmmmmm") → false
sameNumVowels("when you lose", "the game") → false

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

public boolean sameNumVowels(String str1, String str2) { }

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

Copyright Nick Parlante 2017 - privacy