Class Exercise (July 26)
You are not required to submit this exercise although
you are encouraged to complete the exercise by August 2,
particularly for those who are not as familiar with Java.
- Implement ArrayStack.java as defined in slides 4-6 of
the DSinJ slides.
- Write a UseStack.java class whose main program
contains the code in slide 7. This program tests your
ArrayStack class.
- Revise ArrayStack.java so that the top instead points
to the actual top element instead of the first free element.