/* * Kyle Pierce * CSE 143 * * Client program using our new IntList interface */ public class ListClient { public static void main(String[] args) { IntList list1 = new ArrayIntList(); processList(list1); IntList list2 = new LinkedIntList(); processList(list2); // error because you can't ask for just an IntList in the // same way that Amazon doesn't have a generic HDMI device // IntList list3 = new IntList(); } // post: does a few simple opertations on the list, such as adding // numbers, printing, and remove numbers public static void processList(IntList list) { list.add(18); list.add(27); list.add(93); System.out.println(list); list.remove(1); System.out.println(list); } }