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

 

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

Write a method that returns 'str' but with each lower-case vowel (a, e, i, o, u) surrounded by "(" and ")". Look at the test data for examples. You MAY solve this recursively, but recursion is NOT required.


feb_22_2019_APSLHL_surroundVowels("ranch dressing.") → "r(a)nch dr(e)ss(i)ng."
feb_22_2019_APSLHL_surroundVowels("This is a fun problem to solve. Quite easy.") → "Th(i)s (i)s (a) f(u)n pr(o)bl(e)m t(o) s(o)lv(e). Q(u)(i)t(e) (e)(a)sy."
feb_22_2019_APSLHL_surroundVowels("All Upper Case Vowels Are Ignored.") → "All Upp(e)r C(a)s(e) V(o)w(e)ls Ar(e) Ign(o)r(e)d."

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

public String feb_22_2019_APSLHL_surroundVowels(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: 290

Copyright Nick Parlante 2017 - privacy