Create a class, Stack
, that implements the PureStack
interface with the following
methods:
Object peek();
Object pop();
void push(Object item);
boolean isEmpty();
Your implementation should make use of a Singly Linked List.
Stuck? You may find these lessons helpful: