Here you can find the source of formatInt(int number)
public static String formatInt(int number)
//package com.java2s; import java.text.NumberFormat; import java.util.Locale; public class Main { public static String formatInt(int number) { return NumberFormat.getNumberInstance(Locale.US).format(number); }/*from w w w . jav a2s .co m*/ }