Question: Write a program that creates a String Array List. Continually prompt the user for Strings to add to the list until a sentinel value is
Write a program that creates a String Array List. Continually prompt the user for Strings to add to the list until a sentinel value is entered. Use an iterator to display all the Strings, then continually ask the user for a String to eliminate until a sentinel value is entered. After each String is eliminated, display the new list. If the user attempts to continue to eliminate Strings after the list is empty, display an appropriate message, and end the program. Save the file as RemoveWords.java.
Step by Step Solution
3.41 Rating (164 Votes )
There are 3 Steps involved in it
import javautil public class RemoveWords public static void mainString args Scanner input new Scann... View full answer
Get step-by-step solutions from verified subject matter experts
