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

 

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

Return a new version of the input parameter string 'str' where every vowel has been shifted to the left by one vowel position and the very first vowel has been shifted to the previous position of the last vowel. For the purpose of this method vowels are 'a', 'e', 'i', 'o', and 'u'. All input strings will contain only lower-case letters, spaces, and punctuations. For example: The string "churches float" would become "cherchos flaut". While the string "racecar" would become "recacar". Strings with no vowel or only one vowel will remain unchanged. You may use recursion or loops. You may NOT use any of the 'replace'-style string commands.


radShiftString("aaaeeiouuu") → "aaeeiouuua"
radShiftString("zebra") → "zabre"
radShiftString("the lazy dog jumped over the crooked fence") → "tha lozy dug jempod ever tho croeked fence"

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

public String radShiftString(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