Here you can find the source of toDouble(String aString)
public static Double toDouble(String aString)
//package com.java2s; //License from project: Open Source License public class Main { public static Double toDouble(String aString) { try {/*from www. ja v a 2 s . c o m*/ double value = 0.00; if (aString == null || aString.trim().equals("")) return 0.00; value = Double.parseDouble(aString.trim()); return value; } catch (Exception e) { e.printStackTrace(); } return null; } }