Consider the given code-blocks above.
Create a new project named StackTesting and create then the Stack interface and the two classes (ArrayStack and LinkedStack) written above.
Create a main class to test both classes (i.e. ArrayStack and LinkedStack) by giving a list of specified values within the main method.
Add this member method to the preceding ArrayStack class:
public E bottom()
// returns the bottom element of this stack
Add this member method to the preceding LinkedStack class:
public E bottom()
// returns the bottom element of this stack
Add this member method to the ArrayStack class:
public void reverse()