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