Here you can find the source of isBetween(int number, int first, int second)
private static boolean isBetween(int number, int first, int second)
//package com.java2s; //License from project: Apache License public class Main { private static boolean isBetween(int number, int first, int second) { return ((number > first) && (number < second)); }/*w w w . ja va 2 s . c o m*/ }