Here you can find the source of inRange(double query, double min, double max)
public static boolean inRange(double query, double min, double max)
//package com.java2s; /**/*from w ww. j a v a2 s. c o m*/ * Part of campskeleton: http://code.google.com/p/campskeleton/ * * Original Copyright Notice: http://www.apache.org/licenses/LICENSE-2.0 * * * @author twak */ public class Main { public static boolean inRange(double query, double min, double max) { return query >= min && query <= max; } }