public static void main(String[] args) {
		// TODO Auto-generated method stub
		int i = 1;
		TreeNode root = new TreeNode(i++);
		root.left = new TreeNode(i++);
		root.right = new TreeNode(i++);

		root.left.left = new TreeNode(i++);
		root.left.right = new TreeNode(i++);

		root.right.left = new TreeNode(i++);
		root.right.right = new TreeNode(i++);

		TreeTranversal sample = new TreeTranversal();
		sample.result = new ArrayList<Integer>();
		System.out.println("In order:");
		sample.Inorder(root);
		for (int j : sample.result)
			System.out.print(j + " ");
		System.out.println();
		//
		sample.result = new ArrayList<Integer>();
		System.out.println("Pre order:");
		sample.Preorder(root);
		for (int j : sample.result)
			System.out.print(j + " ");
		System.out.println();
		//
		sample.result = new ArrayList<Integer>();
		System.out.println("Post order:");
		sample.Postorder(root);
		for (int j : sample.result)
			System.out.print(j + " ");
		System.out.println();
		//
	}