Here you can find the source of formatValue(int value)
public static String formatValue(int value)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { public static String formatValue(int value) { return new DecimalFormat("#, ###").format(value); }/* ww w. j a va 2 s . c o m*/ public static String format(int num) { return NumberFormat.getInstance().format(num); } }