Java-Replacement in a String
Replace Method If you want to replace all occurrences of one character or character sequence in the invoking string with another character or character sequence use the replace() method. The replace( ) method has two forms: In the first form, oldChar specifies the character to be replaced by the character specified by newChar. The resulting string is returned. … Read more…