Here you can find the source of toDouble(Object prmIntObject)
public static double toDouble(Object prmIntObject)
//package com.java2s; //License from project: Apache License public class Main { public static double toDouble(Object prmIntObject) { double rtnDouble = 0; if (prmIntObject != null) { if (prmIntObject.toString() != "") { rtnDouble = Double.parseDouble(prmIntObject.toString()); }// w ww . j av a 2s . c o m } return rtnDouble; } public static String toString(Object stringObject) { return toString(stringObject, ""); } public static String toString(Object stringObject, String value2) { if (stringObject != null) { return stringObject.toString(); } else { return value2; } } }