Here you can find the source of inRange(int x, int a, int b)
public static boolean inRange(int x, int a, int b)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean inRange(int x, int a, int b) { return x >= a && x <= b; }/*from ww w . ja v a2 s. c om*/ }