code: public static Long parseLong(String s, long defaultValue) {
          try {
              Long value = Long.parseLong(s);
              return value;
          } catch (NumberFormatException e) {
              //do nothing
          }
          return defaultValue;
      }
docs: return the default value instead of throw an exception