Here you can find the source of getDoubleByNumeric(String valorTexto)
public static Double getDoubleByNumeric(String valorTexto) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; import java.text.NumberFormat; import java.text.ParseException; import java.util.Locale; public class Main { public final static Locale localBrasil = new Locale("pt", "BR"); public static Double getDoubleByNumeric(String valorTexto) throws ParseException { NumberFormat df = DecimalFormat.getInstance(localBrasil); return df.parse(valorTexto).doubleValue(); }/* w ww . java 2 s .com*/ }