replace()

Replaces old in the current String with new.

Syntax

String  replace(String old, String new)
  1. old is the original string.
  2. new is the string that replaces old.