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

 

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

Your goal is to write a method that accepts a string as an input parameter, then returns a new string where every occurance of 'au' or 'Au' has been replaced with 'golden' or 'Golden' respectivly. The input parameter will have at least one character in it.


goldenWords("auauauau") → "goldengoldengoldengolden"
goldenWords("xAu au Aux") → "xGolden golden Goldenx"
goldenWords("x") → "x"

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

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