title: java method to find nearest match to a given no. in unsorted array of integers
body: <p>I wanted help regarding Java program to find out nearest match to any given integer in unsorted array of integers</p>
  
  <p>Can I please have suggestions about:</p>
  
  <pre><code>* How to get start off with this?
  * Should i first sort the array
  </code></pre>
  
  <p>Thanks All</p>