Question: Write a LetsGoShopping program in JAVA LANGUAGE that does the following: -Welcome to the Let's Go Shopping program! -This program maintains a shopping list on
Write a LetsGoShopping program in JAVA LANGUAGE that does the following:
-"Welcome to the Let's Go Shopping program!" -This program maintains a shopping list on the disk and -let's you add items to the list (typically before you go shopping) -or remove items from the list (typically as you are shopping). -To remove an item you simply enter the item's number shown on the list, -or to add an item you simply enter it's description (without a number). -The list is sorted as you add so you can more easily group and find items. -(Be aware that the sorting will change an item's 'item number' in the list.
.
Functions covered in this program:
try/catch
writing objects to disk
methods of the Arrays class
while(true) loop
continue/break to repeat or exit a loop
Using a boolean variable
calling another method with common code (a "subroutine") to avoid code duplication
trim()
Scanner will read nextLine() to allow input to be int or String.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
