// Helene Martin, CSE 143 // Creates a LinkedIntList and calls its methods. Demonstrates // how to thoroughly test addSorted. public class ListClient { public static void main(String[] args) { LinkedIntList list = new LinkedIntList(); list.add(-3); list.add(17); list.add(42); System.out.println(list); list.addSorted(32); // add to the middle // list.addSorted(33); // same case as above -- doesn't give new info! list.addSorted(64); // add to the end list.addSorted(-5); // add to the front list.addSorted(64); // something already in list System.out.println(list); LinkedIntList list1 = new LinkedIntList(); list1.addSorted(5); // list initially empty System.out.println(list1); LinkedIntList listConstructor = new LinkedIntList(17); //System.out.println(listConstructor); } }