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_removeLtrCaseSensitive
prev  |  next  |  chance

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


test2021_04_08_APP1SLHL_removeLtrCaseSensitive("YYZ", "y") → "Z"
test2021_04_08_APP1SLHL_removeLtrCaseSensitive("Aaron the aardvark", "A") → "ron the rdvrk"
test2021_04_08_APP1SLHL_removeLtrCaseSensitive("Speaking of A-aron, Key and Peele make me laugh!", "a") → "Speking of -ron, Key nd Peele mke me lugh!"

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

public String test2021_04_08_APP1SLHL_removeLtrCaseSensitive(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: 250

Copyright Nick Parlante 2017 - privacy