Here you can find the source of inRange(int value, int lowerBound, int upperBound)
public static boolean inRange(int value, int lowerBound, int upperBound)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean inRange(int value, int lowerBound, int upperBound) { return (lowerBound <= value && value <= upperBound); }//w ww . j av a 2s . c om public static boolean inRange(double value, double lowerBound, double upperBound) { return (lowerBound <= value && value <= upperBound); } }