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

 

abraskin@mbusd.org 2016_practice_set_5 > mostVowels
prev  |  next  |  chance

Given an array of Strings, return only the String with the most vowels in it.
Note: If two elements have the same number of vowels you should return the one with the highest index.
Note: If no elements have any vowels you should return "Oops" instead.


mostVowels(["Hello", "Goodbye"]) → "Goodbye"
mostVowels(["aaa", "bbb", "ccc", "ddd", "eee"]) → "eee"
mostVowels(["Aaron", "Ken", "Gena", "David", "Jason", "Brandy"]) → "Aaron"

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

public String mostVowels(String[] arr) { }

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

Copyright Nick Parlante 2017 - privacy