Java-Recursion: When does statements after a recursive method call executes
- by Ruru Morlano
When are statements after the method call itself going to execute?
private void inorderHelper(TreeNode node)
{
if ( node==null )
return;
inorderHelper(node.leftNode);
System.out.printf("%d", node.data);
inorderHelper(node.rigthNode);
}
All I can see is that the line of codes inorderHelper(node.leftNode) will continue to…