NumUtil { public static boolean isIntBetween( int num, int from, int to ) { return num >= from && num <= to; } private  NumUtil(); static boolean isIntBetween( int num, int from, int to ); static boolean isLongBetween( long num, long from, long to );  }
@Test public void testIsIntBetween() throws Exception { NumUtil.isIntBetween( 5, 1, 10 ); }