whatsthecodeforthat.com

What's the code for Replace Substring in java?

String replaced = s.replace(old, new);