Printing a node from BST : <p>I have a code similar to this one:<br/>
<a href="https://www.geeksforgeeks.org/find-closest-element-binary-search-tree/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/find-closest-element-binary-search-tree/</a></p>

<p>For this algorithm, it will print out 17. However, I want to print it out as <br/>
<code>17 is the node closest to 18</code></p>

<p>How is that possible? Do I need to create a toString method? If so, how can it be written? </p>
