Question: String Write a Java program to find a certain character in a string and replace it with a new character. Allow user to enter a

String Write a Java program to find a certain character in a string and replace it with a new character. Allow user to enter a string, find character and the replace character. Display the new string. TEST CASE #1 Enter a string: AABBCCDDD Find a character: A Replace with: S New String: SSBBCCDDD TEST CASE #2 Enter a string: AABBCCDDD Find a character: E Replace with: R Character not Found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
