@Test public void whenPollThenSizeIsOne() { list.poll(); assertThat(list.size(), is(1)); }
public E poll() { E result = this.get(0); remove(0); return result; }
MyQueueList extends MyLinkedList<E> { public E poll() { E result = this.get(0); remove(0); return result; } }
MyQueueList extends MyLinkedList<E> { public E poll() { E result = this.get(0); remove(0); return result; }  }
MyQueueList extends MyLinkedList<E> { public E poll() { E result = this.get(0); remove(0); return result; }  void offer(E e); E peek(); E poll(); }
MyQueueList extends MyLinkedList<E> { public E poll() { E result = this.get(0); remove(0); return result; }  void offer(E e); E peek(); E poll();  }