Get Currency Symbols for Locale.FRANCE in Java
Description
The following code shows how to get Currency Symbols for Locale.FRANCE.
Example
/*from w w w.j a v a 2 s . c om*/
import java.util.Currency;
import java.util.Locale;
public class Main {
public static void main(String[] args) {
Currency currency = Currency.getInstance(Locale.FRANCE);
System.out.println("France: " + currency.getSymbol());
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »