Here you can find the source of inRange(int minValue, int maxValue, int value)
public static boolean inRange(int minValue, int maxValue, int value)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean inRange(int minValue, int maxValue, int value) { if (maxValue < minValue) { return false; }//from w w w . j a v a2 s .c o m return (value >= minValue) && (value <= maxValue); } }