Here you can find the source of parseDouble(String str)
public static Double parseDouble(String str)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; public class Main { public static Double parseDouble(String str) { try {// ww w. j a v a 2 s.c om DecimalFormat df = new DecimalFormat("#,##0.0#"); return Double.valueOf(String.valueOf(df.parseObject(str))); } catch (Exception e) { return new Double(0.0); } } }