code: public static boolean isIntegerInRange(String s, int a, int b) {
          if (isEmpty(s)) return defaultEmptyOK;
          // Catch non-integer strings to avoid creating a NaN below,
          // which isn't available on JavaScript 1.0 for Windows.
          if (!isSignedInteger(s)) return false;
          // Now, explicitly change the type to integer via parseInt
          // so that the comparison code below will work both on
          // JavaScript 1.2(which typechecks in equality comparisons)
          // and JavaScript 1.1 and before(which doesn't).
          int num = Integer.parseInt(s);
  
          return ((num >= a) && (num <= b));
      }
docs: isIntegerInRange returns true if string s is an integer
  within the range of integer arguments a and b, inclusive.