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
Get step-by-step solutions from verified subject matter experts
