This is java FixedSizedStack . Frankly, Deques are more likely to be valuable as
ID: 3592803 • Letter: T
Question
This is java
FixedSizedStack. Frankly, Deques are more likely to be valuable as an instrument of instruction (teaching you about linked structures, so you're prepared to understand graphs and trees) than in code you'll write in the future. I know of only a couple of real-world applications:
the A-Steal job scheduling algorithm (read about it here, if interested)
A fixed sized stack, in which you may push and pop off the front of the stack as usual, but you also remove items off the back of the stack once capacity has been reached.
Today, you will implement the second one in FixedSizedStack.java, which will be a client of the Deque.
This class should primarily involve pass-through code, making liberal use of the Deque API. For example, a call to push will simply call addFirst, then possibly removeLast.