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

 

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

You have a restricted set of string commands for this problem. The only string commands you are allowed to use are: .charAt .substring .length and .equals. No other string commands may be used. This method replaces each occurance of the 'remove' character with the 'replace' character. Other characters are not changed. Note that this method IS case sensitive, so if you are replacing 'e' you will NOT replace 'E'.


runeDuneAdvanced1("Dune", "u", "a") → "Dane"
runeDuneAdvanced1("", "j", "X") → ""
runeDuneAdvanced1("abcde", "z", "W") → "abcde"

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

public String runeDuneAdvanced1(String str, char remove, char replace) { }

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: 240

Copyright Nick Parlante 2017 - privacy