### Question:
SinglyLinkedList implements List<E> { @Override public int size() { return 0; }  @Override boolean isEmpty(); @Override E get(int i); @Override void add(int i, E e); @Override E remove(int i); @Override Iterator<E> iterator(); @Override int size(); @Override E removeFirst(); @Override E removeLast(); @Override void addFirst(E e); @Override void addLast(E e); static void main(String[] args);  }### Answer:
@Test void testSize() { SinglyLinkedList<Integer> ll = new SinglyLinkedList<>(); assertEquals(0, ll.size()); ll.addFirst(0); assertEquals(1, ll.size()); }