Java tutorial
//package com.java2s; public class Main { /** * Parses the double. * * @param str * the str * @return the double */ public static double parseDouble(String str) { if (str == null) { str = "0"; } return Double.parseDouble(str); } }