Here you can find the source of toDouble(Object _inStrObj)
public static double toDouble(Object _inStrObj)
//package com.java2s; public class Main { public static double toDouble(Object _inStrObj) { if (_inStrObj == null || _inStrObj.toString().trim().equals("")) { return 0; } else {//from ww w . ja v a 2s .c o m return Double.valueOf(_inStrObj.toString()).doubleValue(); } } }