code: public static boolean isInteger (String value)
      {
          try {
              Integer.parseInt(value);
              return true;
          } catch (NumberFormatException nfe) {
              // fall through
          }
          return false;
      }
docs: Returns whether the supplied string represents an integer value by attempting to parse it
  with {@link Integer#parseInt}.