Invalid double in converting String to Double
问题 i get a NumberFormatException : invalid double "111,000,000" in this line of code : double SalePotential = Double.valueOf(EtPotential.getText().toString()); in the beginning i've used Numberformat , to format my double value for separating number and inserted it to an EditText but when i try to retrieve the value of EditText it throws me the exception : NumberFormat f = NumberFormat.getInstance(); EtPotential.setText(String.valueOf(f.format(PTData.SalePotential))); i've also tried