CSCI 51, Spring 2009

Program 10: GenericBox and GenericQueue

2%, 50 points

Assigned: Thursday, April 30
Due: Tuesday, May 5, 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.