ArrayStack Quiz

public interface Stack211<E> {
  boolean empty();
  E peek();
  E pop();
  E push(E item);
}

public class ArrayStack<E> implements Stack211<E> {
  private E[] data;
  private int top;
  ...
  public E pop() {
    // your code here.
  }

  public boolean empty() {
    // your code here.
  }
  ...
}

Time remaining: