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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started