Here you can find the source of parseDouble(String inStr)
public static double parseDouble(String inStr)
//package com.java2s; // This software is licensed under the GNU General Public License, import java.text.NumberFormat; import java.text.ParseException; import java.util.Locale; public class Main { private static Locale sLocale; public static double parseDouble(String inStr) { try {//from w w w.j a va2s . c om NumberFormat nf = NumberFormat.getInstance(sLocale); Number n = nf.parse(inStr); return n.doubleValue(); } catch (ParseException e) { return Double.parseDouble(inStr); } } }