I copied the methods from the Stack class spi.


public class TestMyStack {
public static void main(String[] args) {
MyStack stack = new MyStack();
stack.push(new E());
...