Question: Design then implement a Java program that remove the 1 st three occurrences of the character m (capital or small) from string then print the

Design then implement a Java program that remove the 1st three occurrences of the character m (capital or small) from string then print the resulting string on the screen.

Here is a sample run of the program:

Enter a string: Im a JaVa PrOgRaMmEr

The new string is : I a JaVa PrOgRaEr

NOTE: Your program should work for any string having at least 3 m characters NOT ONLY the giving string in the example

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!