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

 

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

Write a method that returns a copy of 'str' but with all instances of the letter 'remove' removed from the string. Notice that this process is case-sensitive, so if 'e' is being removed, 'E' will NOT be removed.


test2021_04_08_APP1SLHL_removeLtr("UPPERCASE and lowercase are treated differently", "E") → "UPPRCAS and lowercase are treated differently"
test2021_04_08_APP1SLHL_removeLtr("UPPERCASE and lowercase are treated differently", "e") → "UPPERCASE and lowrcas ar tratd diffrntly"
test2021_04_08_APP1SLHL_removeLtr("For example, if you remove all the 'e' letters you get this:", "e") → "For xampl, if you rmov all th '' lttrs you gt this:"

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

public String test2021_04_08_APP1SLHL_removeLtr(String str, char remove) { }

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

Copyright Nick Parlante 2017 - privacy