Question: Read through the lab to get a basic idea of the requirements, and then start working through the lab in the recommended order. Do not
Read through the lab to get a basic idea of the requirements, and then start working
through the lab in the recommended order.
Do not modify Queue.java and Stack.java interfaces. When we test your code,
we overwrite these and other files with the originals.
DO NOT change the class signature for the YorkArrayStack class. It needs to
stay asis
DO NOT change the class signature for the YorkArrayQueue class. It needs to
stay asis
DO NOT change the class signature for the YorkQueueUsingStacks class. It
needs to stay asis
You are only allowed to use Queue.java and Stack.java interfaces given to you
inside the lab package.
Ultimately, you must implement the lab classes from scratch. Also, you need to ensure
the best possible performance for all the implemented operations.
You are strictly forbidden from using any java.util implementations of
Collection or Map interfaces including but not limited to ArrayList,
LinkedList, Stack and others to complete this lab. Violating this
requirement will cause your lab marks to be zero.
For each method which you are required to implement:
o No System.out.println statements should appear in it
o No Scanner operations eg input.nextInt should appear in it
Instead, declare the method's input parameters as indicated by the JUnit tests.
You are NOT allowed to add any "import" statement other than those already given in
the starter files.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
