Check If Number Is Within Range Using Java

This helper method checks if a given number is in between the range of the two numbers. I tried using >= and <= but they did not work. This method did the trick. I forgot where I found this one. It was in a forum about Java.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *