/* * Kyle Pierce * CSE143 * * Client program with the testing code from lecture. * In the jGRASP debugger, drag out "dummy" to see "p" and "q". */ public class ListTest { public static void main(String[] args) { // dummy node for jGRASP debugger ListNode dummy = new ListNode(1); // problem setup ListNode p = new ListNode(2, new ListNode(4)); ListNode q = new ListNode(3, new ListNode(9)); // code to solve the problem p.next.next = q; q = q.next; p.next.next.next = null; } }