replcae string java code example
Example: java string repalce
String str1 = "abc123abc123";
String str2 = str1.replace("abc", "0");
System.out.println(str2); // 01230123
String str1 = "abc123abc123";
String str2 = str1.replace("abc", "0");
System.out.println(str2); // 01230123