I have a binary tree which I would like to get printed out inorder.
Right now I have this recursice loop:
public void inorder()
{
if(leftChild != null )
leftChild.inorder();
System.out.print(" " + data);
if(rightChild != null )
rightChild.inorder();
}
This get the right order printed. The problem is that I want this function to return a String with the right order.