Question: IN JAVA Write a program that will basically remove two characters from the end of a phrase. The program will prompt how many lines do
IN JAVA
Write a program that will basically remove two characters from the end of a phrase. The program will prompt how many lines do you want? Lets say you put in 5, then it should have 5 lines where you type something and from each line two characters should be removed and the program prints out the amount of lines the user asked for with the 2 characters missing from the end.
It should look something like this. (Ignore the program and user thats just for clarification.)
PROGRAM: How many lines would you like?
USER: 3
Then it should load up how many lines they wanted
USER: Nature is nice
USER: Clouds
USER: Programming is hard
Then the program should print out
Nature is ni
Clou
Programming is ha
THANK YOU!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
