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

 

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

Write a method that accepts a string characters and returns a string of only the vowels from the input string in the same order they were originally in. Note that the length of the resulting string must be equal to the number of vowels in the original input string. You may assume the the input string is non-empty and does not contain any uppercase letters.


getVowels("ehki5so") → "eio"
getVowels("63aaxu") → "aau"
getVowels("wo") → "o"

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

public String getVowels(String letters) { }

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: 330 Post-solution available

Copyright Nick Parlante 2017 - privacy