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 adapt the ArrayList
class and provide
an efficient implementation.