How to find what range a number is in
<p>I have folders named like this:</p>

<pre><code>"1-500"
"501-1000"
"1001-1500"
"1501-2000"
"2501-3000"
etc....
</code></pre>

<p>Given an Id such as <code>1777</code> how can I find the name of the folder it belongs in?</p>

<p>I am using Java, but your answer can be pseudocode.</p>

<p>Thanks!</p>
