because you tried to put a “,” in a number.
you can use this code to parse a number with comma:
NumberFormat.getNumberInstance(Locale.FRANCE).parse("265,858")
you should also use float or double if there is no particular reason you use decimal.
because you tried to put a “,” in a number.
you can use this code to parse a number with comma:
NumberFormat.getNumberInstance(Locale.FRANCE).parse("265,858")
you should also use float or double if there is no particular reason you use decimal.