School of Engineering and Applied Science
Department of Computer Science
CSci 133 -- Introduction to Software Development
http://www.seas.gwu.edu/~csci133/fall05
Prof. Michael B. Feldman
mfeldman@gwu.edu

Lab Exercise #5
for lab meeting Wednesday, Nov. 2, 2005

The purpose of this lab is to work with LIFO stacks; it depends only on Section 6.1.
  1. Copy the file jss2/StackADT.java into your own filesystem; call this file Stack.java.
  2. Now modify it so it is not an interface, but rather an ordinary class.
  3. Now add stubs for the methods, write javadoc comments, and create a javadoc page for it. Note: to make the file compilable, wherever an Object is returned, you can write return null;
  4. Now complete the stack class by filling in the method bodies to use a linked list to represent a stack object. Note that you can use LinkedNode again for the basic node methods.
  5. Finally, write a test program that uses stack elements of type String.

(end of lab)