What is the best way to find out whether two number ranges intersect?
My number range is 3023-7430, now I want to test which of the following number
If you're using Java Commons Lang Range has a overlapsRange(Range range) method.