Question: all AT&T 7:59 PM a intro.edhesive.com Write a Java program that allows a user to input words at the command line. Your program should stop

 all AT&T 7:59 PM a intro.edhesive.com Write a Java program that

all AT&T 7:59 PM a intro.edhesive.com Write a Java program that allows a user to input words at the command line. Your program should stop accepting words when the user enters "STOP" Store the words in an ArrayList. The word STOP should not be stored in the list. edhesive S2017-18 Home Grades Modules Student Forum Next, print the size of the list, followed by the contents of the list. Then, remove the first and last words stored in the list, but only if the list has a length greater than two. Finally, reprint the contents of the list Sample Run: Courses Please enter words, enter STOP to stop the loop cup spoon fork bowl plate knife STOP Calendar [cup, spoon, fork, bowl, plate, knifel spoon, fork, bowl, platel and the Note: For this activity, you must use the class name, method, main Main output errors Run Submit Answers

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!