code: public static double getDouble(Properties props, String key, double defaultValue) {
      String value = props.getProperty(key);
      if (value != null) {
        return Double.parseDouble(value);
      } else {
        return defaultValue;
      }
    }
docs: Load a double property.  If the key is not present, returns defaultValue.