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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!