Here you can find the source of between(float number, float boundary1, float boundary2)
public static boolean between(float number, float boundary1, float boundary2)
//package com.java2s; public class Main { public static boolean between(float number, float boundary1, float boundary2) { return ((number >= boundary1 && number <= boundary2) || (number <= boundary1 && number >= boundary2)); }//www .j a va 2s .c om }