Here you can find the source of parseDouble(String d)
public static Double parseDouble(String d) throws ParseException
//package com.java2s; //License from project: Apache License import java.text.DecimalFormat; import java.text.ParseException; public class Main { public static Double parseDouble(String d) throws ParseException { DecimalFormat format = new DecimalFormat("#.##"); return format.parse(d.toUpperCase().replace("+", "")).doubleValue(); }// w ww. j a v a 2 s .com }