Take out a piece of paper and put your name on the upper right corner.

public class ArrayQueue<E> implements Queue211<E> {
  private E[] data;
  private int front;
  private int rear;
  private int size;
  ...
  public boolean add(E e) { // May throw an IllegalStateException
    // your code here.
  }

  public E remove() { // May throw an IllegalStateException
    // your code here.
  }
  ...
}

Time remaining: