I am using the below code to get the currency symbol for USD
Currency currency=Currency.getInstance("USD");
currency.getSymbol();
I get the output as US$
But I want the output as $
So what's wrong in this?
This should resolve issue :
Currency currency = Currency.getInstance(Locale.US);