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

 

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

Write a method that returns the string 'str' but with all occurrences of 'ltr' removed.


test2020_10_15_P1SLHL_remove("first firm fixed", "i") → "frst frm fxed"
test2020_10_15_P1SLHL_remove("abcdefg", "r") → "abcdefg"
test2020_10_15_P1SLHL_remove("xyz", "y") → "xz"

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

public String test2020_10_15_P1SLHL_remove(String str, char ltr) { }

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