I have code that formats default locale currency symbol (correct me if I'm wrong):
String df = NumberFormat.getCurrencyInstance().getCurrency().getSymbol();
String dfs = NumberFormat.getCurrencyInstance().format(11);
System.out.println(df + " "+ dfs );
Output
$ $11.00
I would like to have custom currency symbol instead of $. I have changed currency symbol in locale file I found in my Debian under /usr/share/i18n/locales.
Unfortunately this change has no influence on code output. How to solve this problem?