Currency Symbols for Locale.US
import java.util.Currency;
import java.util.Locale;
public class Main {
public static void main(String[] args) {
Currency currency = Currency.getInstance(Locale.US);
System.out.println("United States: " + currency.getSymbol());
}
}
Output:
United States: US$
Home
Java Book
Runnable examples
Java Book
Runnable examples
Currency:
- Currency Symbols for Locale.US
- Currency Symbols for Locale.UK
- Currency Symbols for Locale.FRANCE
- Format currency value