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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started