public class IntList { int item; IntList next; IntList(int item, IntList next) { this.item = item; this.next = next; } static IntList empty = null; static boolean isEmpty(IntList l) { return l == empty; } ========== creating lists of elements ======== IntList l1 = new IntList(1,empty); IntList l2 = new IntList(2,l1); . . . ============================================= static int getElement(int n, IntList l) P if (n==0) return l.item; else return getElement(n-1, l.nextl }