NumberFormat.getNumberInstance().format(new Integer(1000)) // 1,000 in US locale, 1 000 in France
"1,000" -> 1000 "1 000" -> 1000
Are there any methods or ways to convert number-formatted number to integer in any locales?
NumberFormat.getNumberInstance().format(new Integer(1000)) // 1,000 in US locale, 1 000 in France
"1,000" -> 1000 "1 000" -> 1000
Are there any methods or ways to convert number-formatted number to integer in any locales?
You might be interested in the NumberFormat class, it allows you to format based on locale, which you just need to find out to access the right one:
NumberFormat nf = NumberFormat.getInstance(Locale.FRENCH);
myNumber = nf.parse(<String or Number here>);
To get the locale, you need, read here