How can I find out the currency sub-unit (aka minor unit) symbol in Java?
Currency.getSymbol will give me the major symbol (e.g. "$" for USD) but I'd like to get the minor unit (e.g. "p" for GBP or the cents symbol for USD), without writing my own look up table. Is there a standard, i.e. built in way to do this? I would like to suggest for this situation to use custom custom currency format . Use DecimalFormat or NumberFormat of java.text.* package. There are a lot of example for that. Example public class CurrencyFormatExample { public void currencyFormat(Locale currentLocale) { Double currency = new Double(9843.21); NumberFormat currencyFormatter; String