Write a program ReplaceTester that encodes a string by replacing all letters i with ! and all

Question:

Write a program ReplaceTester that encodes a string by replacing all letters "i" with

"!" and all letters "s" with "$". Use the replace method. Demonstrate that you can correctly encode the string "Mississippi". Print both the actual and expected result.

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

Step by Step Answer:

Related Book For  answer-question
Question Posted: