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

1 Expert Approved Answer
Step: 1 Unlock

import javautil public class RemoveWords public static void mainString args Scanner input new Scann... View full answer

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 Java Programming Questions!