@Test public void whenPopThenResultLastElement() { assertThat(list.pop(), is(2)); }
public E pop() { E result = get(size() - 1); remove(size() - 1); return result; }
MyStackList extends MyLinkedList<E> { public E pop() { E result = get(size() - 1); remove(size() - 1); return result; } }
MyStackList extends MyLinkedList<E> { public E pop() { E result = get(size() - 1); remove(size() - 1); return result; }  }
MyStackList extends MyLinkedList<E> { public E pop() { E result = get(size() - 1); remove(size() - 1); return result; }  E peek(); E pop(); void push(E e); }
MyStackList extends MyLinkedList<E> { public E pop() { E result = get(size() - 1); remove(size() - 1); return result; }  E peek(); E pop(); void push(E e);  }