// Allison Obourn // CSE 143 - lecture 2 // Client program to test the ArrayIntList functionality // Allison Obourn // CSE 143 - lecture 2 // Client program to test the ArrayIntList functionality public class ArrayIntListClient { public static void main(String[] args) { ArrayIntList a = new ArrayIntList(); // a.elementData[0] = 4; // not the object-oriented way! // a.size++; // this should always happen when an element is added // a.size = -9999; // fields should be private to guard against bad // clients a.add(4); a.add(34); a.add(1, 2); System.out.println(a); a.remove(1); System.out.println(a); //System.out.println(a.get(7)); //System.out.println(a.get(-1)); //a.add(8, 3); //System.out.println(a); for(int i = 0; i < 100; i++) { a.add(i); } System.out.println(a); } }