CSCI 51, Fall 2008
Program 10: GenericBox and GenericQueue
2%, 50 points
Assigned: Thursday, December 4
Due: Tuesday, December 9, prior to class.
Look at GenericStack.java,
and the required GenericList and GenericNode that it uses. Notice that
Box.java and Queue.java are
poorly designed in the same way that Stack.java was, in that they
are not generic. Make your own GenericBox.java
and GenericQueue.java and turn
them in.
Also, to each add a main method (to serve as a utility) that declares
and instantiates said objects and
uses them in a way that tests your code.