I want to get the currency format of INDIA. But there exists only few contries code. There is no country code for INDIA.
public void displayCurrencySymbols() {
Currency currency = Currency.getInstance(Locale.US);
System.out.println("United States: " + currency.getSymbol());
currency = Currency.getInstance(Locale.UK);
System.out.println("United Kingdom: " + currency.getSymbol());
}
But for US, UK are having the Locale. If i want to get INDIAN currency format, then what can i do far that? Is it possible to get all country currency format using java? Can you explain in a simple example?