Push right and left children of the popped node to stack
if ( mynode . right != null ) { nodeStack . push ( mynode . right ) ; } if ( mynode . left != null ) { nodeStack . push ( mynode . left ) ; } } }