Node root; void setup (){ root = new Node( 10, null, null ); root.addLeftChild( 11 ); root.left.addLeftChild( 334341 ); root.left.addRightChild( 10 ); root.left.left.addRightChild( 33434342 ); root.left.left.addLeftChild( 3334 ); root.left.right.addLeftChild( 6342 ); root.left.right.addRightChild( 63 ); Node temp = root; for( int i=0; i<5; i++ ) { temp.addRightChild( i ); temp = temp.right; } println( size( root ) ); println( "\n\n" ); displayTreeSide( root, 0, "" ); println( "\n\n" ); println( "\n\n" ); displayTreeSide( root, "", " ", "" ); } int size( Node n ) { if( n == null ) { return 0; } else { return size(n.left) + 1 + size(n.right); } } public void displayTreeSide( Node n, int level, String prefix ) { if(n == null) return; displayTreeSide( n.left, level+1, " /" ); String space = " "; for( int i=0; i