Java tutorial
//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); } }