Java Currency Formatter

  • + 0 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);