Here you can find the source of inrange(int actual, int leftRange, int rightRange)
protected static boolean inrange(int actual, int leftRange, int rightRange)
//package com.java2s; //License from project: Apache License public class Main { protected static boolean inrange(int actual, int leftRange, int rightRange) { return (actual >= leftRange && actual <= rightRange); }/*from w ww .java2s . c o m*/ }