Here you can find the source of convertDouble(String str, double defaults)
public static double convertDouble(String str, double defaults)
//package com.java2s; //License from project: Apache License public class Main { public static double convertDouble(String str, double defaults) { if (str == null) { return defaults; }/*from w ww .j a v a 2 s . c om*/ try { return Double.parseDouble(str); } catch (Exception e) { return defaults; } } }