Here you can find the source of between(int coord, int limit)
public static boolean between(int coord, int limit)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean between(int coord, int limit) { return (coord >= 0) && (coord < limit); }/* w w w.j a v a2 s . co m*/ }