Originally posted by Rajesh Narkhed:
will this work?
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Currency.html
Apparently it will, since half an hour before your post Jacob has posted a working solution that uses Currency.
Originally posted by Jacob Thomas:
Is there any problem by constructing a Locale instance by passing a wrong langauge? Thanks!
If you are using it for only this, then no. Currency.getInstance(Locale) only uses the Locale's country.
I wouldn't use the Locale for other means though, since I expect you to run into unexpected results then.
[ October 02, 2008: Message edited by: Rob Prime ]