Question: Hello I'm having difficulty understanding this problem with my study guide question for my Intermediate Java class with ArrayList. I cannot figure out how to
Hello I'm having difficulty understanding this problem with my study guide question for my Intermediate Java class with ArrayList. I cannot figure out how to use the ArrayList to maintain the orders. Any help will be greatly appreciated.
Modify the program so that when an order is added using the application that an ArrayList of Orders is maintained in the main class. Note that the list object will be accessed from the static methods of the main class and would need to be static (though it should still be private). Each time the addOrder method is called the new order object should be added to this collection.
The program accepts input from a user, the user enters an order after being prompted to ( I would like to capture this order and store it in an ArrayList).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
