@@ -0,0 +1,1064 @@
+// named after barrel of monkeys:%0A// each one hangs on to the next%0Apublic class MonkeyChain %7B%0A%0A    // structure of items in list%0A    class Node %7B%0A        // each node knows %22next%22 node%0A        Node next;%0A        // and stores a value%0A        String name;%0A        // constructor for nodes%0A        Node(String initialName) %7B%0A            name = initialName;%0A        %7D%0A    %7D%0A   %0A    // beginning of the list, initially empty%0A    private Node first = null;%0A   %0A    // a demo to create a length-3 list%0A    public void threeKongs() %7B%0A        first = new Node(%22DK Sr.%22);%0A        first.next = new Node(%22DK%22);%0A        first.next.next = new Node(%22DK Jr.%22);%0A    %7D%0A   %0A    // use a loop to print all%0A    public void printAll() %7B%0A        // a while loop also can work%0A        for (Node current = first;%0A             current != null;%0A             current = current.next) %7B%0A            System.out.println(current.name);%0A        %7D%0A    %7D%0A    public static void main(String%5B%5D args) %7B%0A        MonkeyChain mc = new MonkeyChain();%0A        mc.threeKongs();%0A        mc.printAll();%0A    %7D%0A%7D

add monkey traversal example