Here you can find the source of string2Double(String s)
public static Double string2Double(String s) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; import java.text.ParseException; public class Main { private static final DecimalFormat mDecFmt = new DecimalFormat("###,###,###,###.##"); public static Double string2Double(String s) throws ParseException { return mDecFmt.parse(s).doubleValue(); }//from www . j av a2s . c o m }