How would grocery list app created using an empty arraylist


Problem

How would a grocery list app be created using an empty ArrayList to store and interact with grocery items added by the user. Using the switch case statement to allow the user to perform the following 6 actions:

• Add items to the list using a string method to ensure all entries are added as lowercase.
• Remove items from list.
• Sort list using Collections.
• Print list using a user-defined method (described below).
• Search for the index number of a grocery item.
• Quit the application and print the final version of the list using the user-defined method described below.

Include the following actions and user-defined methods:

A. Include a while loop to allow the user to continue using the menu items until they wish to quit the application.

B. Each time the user loops back to the beginning of the while loop, make sure the menu is displayed.

C. Use a method that outputs a menu displaying the options above.

D. Use a method that uses a for-each loop to output each item on the list. If the list is empty, display to the user that there are no items on the list.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: How would grocery list app created using an empty arraylist
Reference No:- TGS03340819

Expected delivery within 24 Hours