This is similar to Exercise 1 in chapter 9 of the Budd textbook (page 178).
LinkedList
class from
Chapter 8 of the Budd textbook (
retrieve the code from the from FTP site?) and rename it to be
class List
. Format and document the code appropriately,
but do not modify it otherwise. (You are not required to show your
testing output for List
, but you are expected to do so
for the remaining classes.)
List
class,
design and implement class StackIsList
. This subclass
must implement an unbounded stack ADT with operations similar
to the stack ADT defined in your instructor's lecture notes on Data Abstraction. (You do
not need to include the full
or destroy
methods but include the other methods with the same signatures.) Make
the implementation more robust than the code in the Data
Abstraction lecture notes. Format, document, and test the
class appropriately.
List
class, implement class
StackHasList
. This class must also implement the
unbounded stack ADT as described above. Format, document, and test
the class appropriately.
java.util.Vector
(in the Java API), implement a class
StackIsVector
for the unbounded stack ADT.
Format, document, and test the class appropriately.
java.util.Vector
, implement a class
StackHasVector
for the unbounded stack ADT. Format,
document, and test the class appropriately.
UP to CSci 581 Assignments page?