How to find number for any range that belongs in list?
<p>I have a list and an array, I wanted to find each element in the array for any range which belongs to the list.
Here is some code:</p>

<pre><code>int[] number = {1, 2, 3, 5};
public List&lt;double&gt; m = new List&lt;double&gt;();
m.add(1);
m.add(1.5);
m.add(2.6);
m.add(4);
m.add(50);
</code></pre>

<p>For Example :
Get element in array for example 2 and i see where range (between any number in list ) answer that by list ==> 1.5 and 2.6 </p>

<p>I want a method which will return this output :</p>

<blockquote>
  <p><strong><code>find 1 range is {1} to {1.5} and 2 range is {1.5} to {2.6}</code></strong></p>
</blockquote>
