I think this is a real basic question but can someone tell me how to set the currency to Euro?
When I do this:
Code: Select all
System.out.println("Locale: " + locale.getDisplayName());
Currency currency = Currency.getInstance(locale);
System.out.println("Currency Code: " + currency.getCurrencyCode());
System.out.println("Symbol: " + currency.getSymbol());
System.out.println("Default Fraction Digits: " + currency.getDefaultFractionDigits());
the output is
Locale: Nederlands (België)
Currency Code: EUR
Symbol: €
Default Fraction Digits: 2
Still he will always put a $ before the price. So how can I force to put him on €
*****UPDATE****
Code: Select all
Money mon=new Money();
System.out.println(mon.getCurrency());
Will also print out EUR.
Thanks,
Pluto