The Java Collections Framework: A First Look
Projects
5.36 |
Write an abstract class ArrayBasedStructure which is extended by ArrayStack, ArrayQueue, and ArrayList. How much of the implementation can be moved up into this abstract superclass? Discuss whether this makes the overall code more or less clear. |
5.37 |
Write an array-based implementation of the Deque interface from Problem 4.18. |