Here you can find the source of formatInteger(int input)
static public String formatInteger(int input)
//package com.java2s; //License from project: Open Source License import java.text.NumberFormat; import java.util.Locale; public class Main { static public String formatInteger(int input) { NumberFormat formatter = NumberFormat.getInstance(new Locale("en_US")); return formatter.format(input); }//from w w w . j ava 2 s . co m }