Here you can find the source of inRange(int value, int min, int max)
Parameter | Description |
---|---|
value | a parameter |
min | a parameter |
max | a parameter |
public static boolean inRange(int value, int min, int max)
//package com.java2s; public class Main { public static boolean inRange(double value, double min, double max) { return (value >= min && value <= max); }// w w w. j av a2s. 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); } }