DecimalFormatSymbols GetMonetaryDecimalSeparator() Example
Returns the monetary decimal separator.
DecimalFormatSymbolsclass GetMonetaryDecimalSeparator() method example. This example shows you how to use GetMonetaryDecimalSeparator() method.This method Returns the monetary decimal separator.
Here is the code:-
/**
* @Program that Returns the monetary decimal separator.
* GetMonetaryDecimalSeparator.java
* Author:-RoseIndia Team
* Date:-14-Jun-2008
*/
import java.text.*;
import java.util.*;
public class GetMonetaryDecimalSeparator {
public static void main(String[] args) {
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
char c = dfs.getMonetaryDecimalSeparator();
System.out.println("The character used to represent minus sign: " + c);
}
} |
Output of the Program
| The character used to represent minus sign: . |
|