code: public static long parseLong(String num, long defaultLong) {
          if (num == null) {
              return defaultLong;
          } else {
              try {
                  return Long.parseLong(num);
              } catch (Exception e) {
                  return defaultLong;
              }
          }
      }
docs: String Long turn number.
  
  @param num         The number of strings.
  @param defaultLong The default value
  @return long