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

 

abraskin@mbusd.org > arrOfVowels
prev  |  next  |  chance

Given an array of strings, return a new array containing strings with only the vowels included.
If there are no vowels in a string then it should not be included in the resulting array.


arrOfVowels(["Hello World", "AaEeIiOoUu", "aeiou", "AEIOU"]) → ["eoo", "AaEeIiOoUu", "aeiou", "AEIOU"]
arrOfVowels(["Aa", "Ee", "Ii", "Oo", "Uu"]) → ["Aa", "Ee", "Ii", "Oo", "Uu"]
arrOfVowels(["Fuzzy", "Wuzzy", "was", "a", "bear"]) → ["u", "u", "a", "a", "ea"]

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

public String[] arrOfVowels(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