package trampoline;

public class Main {

    public static void main(String args[]) {
        System.out.println("Running trampoline");
        SumOfThunk sot = new SumOfThunk();
        System.out.println(sot.tramp(sot).getResult());
        EvenThunk et = new EvenThunk(11);
        System.out.println(et.tramp(et).getResult());
        et = new EvenThunk(10);
        System.out.println(et.tramp(et).getResult());
    }
}

@@ -14,16 +14,64 @@
 oline;%0A%0A
+import java.util.concurrent.ThreadLocalRandom;%0A%0A
 public c
@@ -454,21 +454,369 @@
 etResult());
+%0A%0A        testNodes();%0A    %7D%0A%0A    public static void testNodes() %7B%0A        int ii;%0A        int rnd;%0A        ThreadLocalRandom rng = ThreadLocalRandom.current();%0A        Node root = new Node(0);%0A        Node n;%0A        for (ii = 0; ii %3C 10; ii++) %7B%0A            rnd = rng.nextInt(20);%0A            n = new Node(rnd);%0A            root.add(n);%0A        %7D
 %0A    %7D%0A%7D%0A

build a tree