DecimalFormatSymbols GetZeroDigit() Example
Gets the character used for zero.
DecimalFormatSymbolsclass GetZeroDigit() method example. This example shows you how to use GetZeroDigit() method.This method Gets the character used for zero.
Here is the code:-
/**
* @Program that Gets the character used for zero.
* GetZeroDigit.java
* Author:-RoseIndia Team
* Date:-14-Jun-2008
*/
import java.text.*;
public class GetZeroDigit {
public static void main(String[] args) {
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
//Gets the character used for zero.
char c = dfs.getZeroDigit();
System.out.println("The character used for zero is: " + c);
}
} |
Output of the Program
| The character used for zero is: 0 |
|