@Test public void testAdd() { HeadList list = new HeadList(); list.add(1337); assertList(list, "[1337]"); list.add(42); assertList(list, "[1337,42]"); list.add(0); assertList(list, "[1337,42,0]"); list.add(-88); assertList(list, "[1337,42,0,-88]"); HeadList list2 = new HeadList(); list2.add(-19); assertList(list2, "[-19]"); }
public void add(int info) { }
HeadList { public void add(int info) { } }
HeadList { public void add(int info) { } HeadList(); }
HeadList { public void add(int info) { } HeadList(); void add(int info); int remove(int index); void reverse(); @Override String toString(); static void main(String[] args); }
HeadList { public void add(int info) { } HeadList(); void add(int info); int remove(int index); void reverse(); @Override String toString(); static void main(String[] args);  }