Well I need help on moifying my report regarding SearchTree.java(Working with Recursion)
"Modify the private report to have an additional parameter which indicates the level of indentation at which the visit should be displayed. The public version of report should be modified to call the private version with an indentation level of 0".
I'm not sure how to go about that. Here's a snippet of my code, since it's a bit long, I am just showing what've I have done with public/private Report, unless you want me to post the whole thing. Any help is appreciated. I believe recursion with private Report is the key to solving this!
public void Report()
{
Report(Root);
};
private void Report(Tree_Node T)
{
if (T != null)
{
Report(T.Left);
T.Data.Visit();
Report(T.Right);
}
};