@Test public void isEmpty() throws Exception { MyList list = new MyLinkedList(); assertTrue(list.isEmpty()); list.add(1); assertFalse(list.isEmpty()); }
@Override public boolean isEmpty() { throw new UnsupportedOperationException(); }
MyLinkedList implements MyList { @Override public boolean isEmpty() { throw new UnsupportedOperationException(); } }
MyLinkedList implements MyList { @Override public boolean isEmpty() { throw new UnsupportedOperationException(); }  }
MyLinkedList implements MyList { @Override public boolean isEmpty() { throw new UnsupportedOperationException(); }  @Override int get(int pos); @Override void add(int val); @Override int removeFirst(); @Override int size(); @Override boolean isEmpty(); }
MyLinkedList implements MyList { @Override public boolean isEmpty() { throw new UnsupportedOperationException(); }  @Override int get(int pos); @Override void add(int val); @Override int removeFirst(); @Override int size(); @Override boolean isEmpty();  }