Case1 : If right child is not null
if ( x . right != null ) { Node inorderSucc = leftMostNode ( x . right ) ; System . out . print ( " Inorder ▁ Successor ▁ of ▁ " + x . data + " ▁ is ▁ " ) ; System . out . print ( inorderSucc . data + "NEW_LINE");  }