DecimalFormatSymbols GetInternationalCurrencySymbol() Example
Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols.
DecimalFormatSymbolsclass GetInternationalCurrencySymbol() method example. This example shows you how to use GetInternationalCurrencySymbol() method.This method Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols.
Here is the code:-
/**
* @Program that Returns the ISO 4217 currency code of the currency of these
* DecimalFormatSymbols.
* GetInternationalCurrencySymbol.java
* Author:-RoseIndia Team
* Date:-14-Jun-2008
*/
import java.text.*;
import java.util.*;
public class GetInternationalCurrencySymbol {
public static void main(String[] args) {
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
String s=dfs.getInternationalCurrencySymbol();
System.out.println("ISO currency code of the currency is :"+s);
}
} |
Output of the Program
| ISO currency code of the currency is :INR |
|