public class ListerDemo { public static void main(String[] args) { Node head; Node middle; Node tail; Lister print; Lister printAgain; tail = new Node("Harpo", null); middle = new Node("Chico", tail); head = new Node("Groucho", middle); print = new Lister(head); System.out.println(print.next()); head.addNodeAfter("Gummo"); while (print.hasNext()) System.out.println(print.next()); System.out.println(); printAgain = new Lister(head); while (printAgain.hasNext()) System.out.println(printAgain.next()); } }