Javapublic void inOrder(){ InOrderTraverse(root);}private void inOrderTraverse(TreeNode root){ If( root != null){ inOrderTraverse(root.left); System.out.print(root.val + “—>”); inOrderTraverse(root.right); }}