Here you can find the source of between(double a, double x, double b)
public static boolean between(double a, double x, double b)
//package com.java2s; //License from project: LGPL public class Main { public static boolean between(double a, double x, double b) { return a <= x && x <= b; }//from www . j a v a2s . c o m }