Beispiel #1
0
 public static void driver()
 {
     Tree tree = new Tree();
     tree.buildTree();
     tree.inorder();
     InOrderIterator iter = new InOrderIterator(tree.root);
     while (iter.hasNext())
         Console.Write("{0} ", iter.Next());
 }
Beispiel #2
0
        public static void driver()
        {
            Tree tree = new Tree();

            tree.buildTree();
            tree.inorder();
            InOrderIterator iter = new InOrderIterator(tree.root);

            while (iter.hasNext())
            {
                Console.Write("{0} ", iter.Next());
            }
        }