Question: Write a program in java that will accept a sentence from a user input and does the following: 1. Write the sentence backwards. 2. Count
Write a program in java that will accept a sentence from a user input and does the following: 1. Write the sentence backwards. 2. Count the number of words in the sentence and display the answer. 3. Change any occurrences of the letter 'e' to the letter 'x'. **Make sure each of these tasks are in it's own method. ** Use a loop to ask the use for another sentence. If user enters 'stop', this will end the prog
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
