Here you can find the source of getIntegerFormat()
public static NumberFormat getIntegerFormat()
//package com.java2s; //License from project: Open Source License import java.text.*; public class Main { private static NumberFormat intFmt = null; public static NumberFormat getIntegerFormat() { if (intFmt == null) { intFmt = NumberFormat.getIntegerInstance(); intFmt.setGroupingUsed(true); }/* ww w. j a v a2 s. c om*/ return intFmt; } }