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

 

removeString


Write a method called removeString, which is given two Strings as input parameters. The method should return the first String which was passed to the method with every occurrence of the second String removed from the first String. For example removeString("Mississippi", "iss") would return "Mippi".


removeString("Mississippi", "iss") → "Mippi"
removeString("Honolulu", "o") → "Hnlulu"
removeString("banana", "a") → "bnn"

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

public String removeString(String s1, String s2){ }

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

Copyright Nick Parlante 2017 - privacy