Here you can find the source of between(int floor, int x, int ceiling)
Parameter | Description |
---|---|
floor | non-inclusive low value |
x | to test |
ceiling | non-inclusive high value |
public static boolean between(int floor, int x, int ceiling)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w . j av a2 s.c o m * @param floor non-inclusive low value * @param x to test * @param ceiling non-inclusive high value * @return (floor < x < ceiling) */ public static boolean between(int floor, int x, int ceiling) { return (floor < x) && (x < ceiling); } }