What function can replace a string with another string?
Example #1: What will replace \"HelloBrother\" with \"Brother\"?
\"HelloBrother\"
\"Brother\"
Example #2
There is a possibility not to use extra variables
String s = "HelloSuresh"; s = s.replace("Hello",""); System.out.println(s);