Here you can find the source of betweenOrEqual(double max, double min, double val)
public static final boolean betweenOrEqual(double max, double min, double val)
//package com.java2s; //License from project: Open Source License public class Main { public static final boolean betweenOrEqual(double max, double min, double val) { if (val > max || val < min) return false; else/*from w w w. ja v a 2 s . co m*/ return true; } public static final boolean betweenOrEqual(float max, float min, float val) { if (val > max || val < min) return false; else return true; } public static final boolean betweenOrEqual(int max, int min, int val) { if (val > max || val < min) return false; else return true; } public static final boolean betweenOrEqual(long max, long min, long val) { if (val > max || val < min) return false; else return true; } }