Created
March 20, 2020 21:42
-
-
Save goyuninfo/986452ba3f8b1eeea132a6426e72b7fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Create NumberFormats using Locales */ | |
NumberFormat us = NumberFormat.getCurrencyInstance(Locale.US); | |
NumberFormat china = NumberFormat.getCurrencyInstance(Locale.CHINA); | |
NumberFormat france = NumberFormat.getCurrencyInstance(Locale.FRANCE); | |
/* Print output */ | |
System.out.println("US: " + us.format(payment)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment