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

 

frew@mclean.com unit3stringdr > replaceWithHashTag
prev  |  next  |  chance

Replace the parameter character with a hashtag in the parameter String.


replaceWithHashTag("Hello", "l") → "He##o"
replaceWithHashTag("Mrs. Frew", "r") → "M#s. F#ew"
replaceWithHashTag("Mississippi", "s") → "Mi##i##ippi"

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

public String replaceWithHashTag(String str, char toReplace) { }

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

Copyright Nick Parlante 2017 - privacy