In this example we are going to see how to use replaceAll String class API method. With replaceAll, you can replace all character sequences and single characters from a String instance. As you know, String objects are immutable. This means, that every time you try to change its value, a new String object is created, holding the new value. So.. Read more