Here you can find the source of inRange(double value, double lower, double upper)
Parameter | Description |
---|---|
value | the value to check |
lower | the lower bound |
upper | the upper bound |
public static boolean inRange(double value, double lower, double upper)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w .j a v a 2s . co m * Check if a value is within a given range * @param value the value to check * @param lower the lower bound * @param upper the upper bound * @return true if the value is in between the lower and upper bounds, else */ public static boolean inRange(double value, double lower, double upper) { return value >= lower && value < upper; } }