// CSE 143, Winter 2010, Marty Stepp // This program tests the methods we wrote for our linked list. public class TestLinkedList { public static void main(String[] args) { // add elements to end of list LinkedIntList list = new LinkedIntList(); list.add(10); list.add(20); list.add(30); list.add(40); // add elements at an index list.add(2, 999); list.add(0, 12345); list.add(1, 777); list.add(3, 8765); for (int i = 0; i < 8; i++) { System.out.println(list.get(i)); } } }