In java esiste una funzione di replace char to char.

Quello che mi serve e' una replace String to String

devo ottenere una newString da una oldString come nell'esempio sotto:
codice:
oldString = "the pen is on the table";
newString = OldString.replace("the","this")
newString = "this pen is on this table";
Esiste?