replace char with word java code example
Example: java replace character
// We want to replace every # with a 8
String larry = "Larry is # years old";
String newString = larry.replace("#", "8");
// We want to replace every # with a 8
String larry = "Larry is # years old";
String newString = larry.replace("#", "8");