Question: Create a program Substitute that gets a sentence from the user and replaces every occurrence of the word java (any case) with JAVA. You cannot

Create a program Substitute that gets a sentence from the user and replaces every occurrence of the word java (any case) with JAVA. You cannot change the original content of the sentence except for the substitution of JAVA. Note that Java could also appear in a word such as JavaScript or Javanese. You must use the substring method to do this. Display the modified sentence. The program must keep running until the user enters quit. Use the command prompt window (terminal) for the program

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!