Posted on 2003-11-06
I am using JDK1.4. When run the following code
> Locale sg = new Locale("en", "SG");
> System.out.println(sg.getLanguage() + " " + sg.getCountry() + " " + NumberFormat.getCurrencyInstance(sg).format(1000000));
> en SG SGD1,000,000.00
Actually what I wanted is S$1,000,000.00
Is it possible to configure it to use S$ instead of SGD. I understand that currency code is used when the symbol is not available. Is there a way to plugin the setting I want to specific locale?