What function can replace a string with another string?
Example #1: What will replace \"HelloBrother\" with \"Brother\"?
\"HelloBrother\"
\"Brother\"
Example #2
String s1 = "HelloSuresh"; String m = s1.replace("Hello",""); System.out.println(m);