DecimalFormat GetGroupingSize() Example
Return the grouping size.
DecimalFormatclass GetGroupingSize() method example. This example shows you how to use GetGroupingSize() method.This method Return the grouping size.
Here is the code:-
/**
* @Program that Return the grouping size.
* GetGroupingSize.java
* Author:-RoseIndia Team
* Date:-12-Jun-2008
*/
import java.text.*;
public class GetGroupingSize {
public static void main(String[] args) {
// Creates a DecimalFormat object
DecimalFormat d = new DecimalFormat();
//Return the grouping size.
System.out.println("The grouping size is" + d.getGroupingSize());
}
} |
|