Code example for DecimalFormat

Methods: setGroupingUsed

0
 
    @Override 
    public DecimalFormat getDecimalFormat(Locale locale) {
        // assumes NumberFormat actually returns a DecimalFormat, which is does  
        DecimalFormat format = (DecimalFormat) NumberFormat.getIntegerInstance(locale);
        format.setGroupingUsed(false);
        return format;
    } 
}