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