// Allison Obourn // CSE 143 - Lecture 8 // Creates a LinkedIntList and calls its methods. public class ListClient { public static void main(String[] args) { LinkedIntList list = new LinkedIntList(); list.add(4); list.add(43); list.add(-22); list.add(67); list.add(8); System.out.println(list.get(0)); // front of list System.out.println(list.get(1)); // inside list System.out.println(list.get(4)); // end of list System.out.println(list); // toString list = new LinkedIntList(12); System.out.println(list); list = new LinkedIntList(); list.addSorted(4); // empty case list.addSorted(13); // end case list.addSorted(130); // end case list.addSorted(240); // end case list.addSorted(47); // middle case list.addSorted(2); // front case // When verifying the behavior of our code, we should // look for different cases to test. There's no point // in testing the same case many times!! System.out.println(list); } }