Nearest Neighbour using KDtree
<p>I know how to construct a kd tree .But the problem that i am facing is how to find nearest neighbour using KD Tree.I have searched on google but not able to find code for finding nearest neighbour,though algos are given . But I am facing difficulty in converting that algo into code because of Language.</p>

<p>Can you please provide me understandable code for NNSearch in java?</p>