// Collection of code snippets by Arne VajhÃ¸j 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.*;

public class Test1 {
    public static void main(String args[]) {
        BinaryTree bt = new BinaryTree();
        bt.insert("Casper");
        System.out.println(bt);
        bt.insert("Jens");
        System.out.println(bt);
        bt.insert("Niels");
        System.out.println(bt);
        bt.insert("Anders");
        System.out.println(bt);
        bt.insert("Erik");
        System.out.println(bt);
        bt.insert("Mogens");
        System.out.println(bt);
        bt.insert("Thomas");
        System.out.println(bt);
        bt.insert("Anton");
        System.out.println(bt);
        bt.insert("Jesper");
        System.out.println(bt);
        bt.insert("Søren");
        System.out.println(bt);
        System.out.println("Casper : " + bt.isPresent("Casper"));
        System.out.println("Fredrik : " + bt.isPresent("Fredrik"));
        System.out.println("Søren : " + bt.isPresent("Søren"));
    }
}
