Design an algorithm that replaces each occurrence of the character x in the String variable str with

Question:

Design an algorithm that replaces each occurrence of the character “x” in the String variable str with a space.Declare String str = "Mr. Bean"

Design an algorithm that replaces “Mr.” with “Mister” in the variable.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: