code: public static int defaultIfNotInteger(String _possibleInt, int _default) {
         if (isInteger(_possibleInt)) {
             return Integer.parseInt(_possibleInt);
         }
         return _default;
     }
docs: Returns integer converted from string or default if string could not be converted to int.
  
  @param _possibleInt string to convert
  @param _default default to use if string cannot be converted
  @return int