// CSE 143, Winter 2012 // Quick tests written alongside ArrayIntList // See last slide from 1/11 for more complete test class public class ListClient { public static void main(String[] arg) { System.out.println("Default capacity " + ArrayIntList.DEFAULT_CAPACITY); ArrayIntList list = new ArrayIntList(); System.out.println(list); System.out.println("Testing indexOf in empty list: " + list.indexOf(17)); list.add(12); list.add(-56); list.add(42); list.add(12); System.out.println("Index of repeated value (2): " + list.indexOf(12)); System.out.println("Index of inexistant value (67): " + list.indexOf(67)); list.add(1, 45); list.add(0, 2); System.out.println(list); } }