@Test(expected=ArrayIndexOutOfBoundsException.class) public void testPopUnderflow() { ss.pop(); }
@Override public T pop() { --depth; T tmp = stack[depth]; stack[depth] = null; return tmp; }
MyStack implements SimpleStack<T> { @Override public T pop() { --depth; T tmp = stack[depth]; stack[depth] = null; return tmp; } }
MyStack implements SimpleStack<T> { @Override public T pop() { --depth; T tmp = stack[depth]; stack[depth] = null; return tmp; } MyStack();  MyStack(int howBig); }
MyStack implements SimpleStack<T> { @Override public T pop() { --depth; T tmp = stack[depth]; stack[depth] = null; return tmp; } MyStack();  MyStack(int howBig); @Override boolean empty(); @Override void push(T obj); @Override T pop(); @Override T peek(); boolean hasNext(); boolean hasRoom(); int getStackDepth(); }
MyStack implements SimpleStack<T> { @Override public T pop() { --depth; T tmp = stack[depth]; stack[depth] = null; return tmp; } MyStack();  MyStack(int howBig); @Override boolean empty(); @Override void push(T obj); @Override T pop(); @Override T peek(); boolean hasNext(); boolean hasRoom(); int getStackDepth(); static final int DEFAULT_INITIAL; }