Menu
support@authoritypapers.com
+1(805) 568 7317

objective read in the names of several grocery items from the keyboard and create a 5152938

Objective: Read in the names of several grocery items from the keyboard and create a shopping list using the Java ArrayList abstract data type.

1) Create a new empty ArrayList

2) Ask the user for 5 items to add to a shopping list and add them to the ArrayList (get from user via the keyboard).

3) Prompt the user for an item to search for on the list. Output a message to the user letting them know whether the item exists in the shopping list. Use a method that is part of the ArrayList class to do the search.

4) Prompt the user for an item to delete from the shopping list and remove it. (be sure to handle the case where they don’t want to delete anything). Use a method that is part of the ArrayList class to do the delete.

5) Prompt the user for an item to insert into the list. Ask them what they want to insert and where they want to insert it (after which item). Use a method that is part of the ArrayList class to do the insertion.

6) Output the final list to the user.

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now