Ummm...
From String (Java Platform SE 6) and from the Java 7 reference whose link you posted:

String replace(char oldChar, char newChar)

Returns a new string resulting from replacing all...