You are viewing a single comment's thread. Return to all comments →
NumberFormat num1 = NumberFormat.getCurrencyInstance(Locale.US); String us = num1.format(payment); NumberFormat num2 = NumberFormat.getCurrencyInstance(new Locale("en","IN")); String india = num2.format(payment); NumberFormat num3 = NumberFormat.getCurrencyInstance(Locale.CHINA); String china = num3.format(payment); NumberFormat num4 = NumberFormat.getCurrencyInstance(Locale.FRANCE); String france = num4.format(payment);
Seems like cookies are disabled on this browser, please enable them to open this website
Java Currency Formatter
You are viewing a single comment's thread. Return to all comments →
NumberFormat num1 = NumberFormat.getCurrencyInstance(Locale.US); String us = num1.format(payment); NumberFormat num2 = NumberFormat.getCurrencyInstance(new Locale("en","IN")); String india = num2.format(payment); NumberFormat num3 = NumberFormat.getCurrencyInstance(Locale.CHINA); String china = num3.format(payment); NumberFormat num4 = NumberFormat.getCurrencyInstance(Locale.FRANCE); String france = num4.format(payment);