Currency Symbols for Locale.UK
import java.util.Currency;
import java.util.Locale;
public class Main {
public static void main(String[] args) {
Currency currency = Currency.getInstance(Locale.UK);
System.out.println("United Kingdom: " + currency.getSymbol());
}
}
Output:
United Kingdom: GBP
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