Here you can find the source of inRange(double value, double min, double max)
public static boolean inRange(double value, double min, double max)
//package com.java2s; public class Main { public static boolean inRange(double value, double min, double max) { return (value >= min && value <= max); }/* w ww. j a va 2 s . c om*/ /** * checks if a value is in the range min..max, min+max are included * * @param value * @param min * @param max * @return */ public static boolean inRange(int value, int min, int max) { return (value >= min && value <= max); } }