public static double parseDouble(String str, double defaultValue) {
        try {
            double d = Double.parseDouble(str);
            return d;
        } catch (Exception e) {
        }
        return defaultValue;
    }