find number range in java
<p>How to get number range in java? for instance how can verify is the number 2389 within 10 numbers from 2400. its not but 2389 is.</p>

<p>Ok here is the rephrase :</p>

<p>Number 1000 is the range number 990 is comming in the loop, I return true because the between 990 and 1000 is 10 numbers diference. </p>

<p>In comes the next number 989 range is always 1000, I return false because the between 989 and 1000 is 11 numbers diference.</p>

<p>In comes the next number 1013 range is always 1000, I return false because the between 1013 and 1000 is 13 numbers diference.</p>
