Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Burger class must not use any other class, nor plain Java arrays. It must only use the MyDeque class to store and manipulate ingredients.
The Burger class must not use any other class, nor plain Java arrays. It must only use the
MyDeque class to store and manipulate ingredients. Hint: You may use a recipe deque in
your program that has the complete burger according to the recipe.
Finally, your program will also provide a Main class that is used to read in the input file and test
and run the Burger class.
public class Main plain class declaration.
public static void mainString args method used to run the program and test the
program elements. The input file containing the list of burger orders is to be passed as a
command line argument, so that the file name is available to your program as args
void parseLineString line parses a line of input from the file and outputs the burger.
void testMyDeque test method for MyDeque.
void testBurger test method for Burger.
You may use List types in the main and you may create any other private or public classes that
you expect will be useful in your simulation. However, your solution must use the Burger class
and the MyDeque class as described.
Also, none of those classes may be in a named package just define them without a Java package
clause
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