java string repalce

Solutions on MaxInterview for java string repalce by the best coders in the world

showing results for - "java string repalce"
Cecilia
14 Jul 2017
1String str1 = "abc123abc123";
2String str2 = str1.replace("abc", "0");
3System.out.println(str2); // 01230123
4