Char java method to replace char wit number 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");