Java tutorial
//package com.java2s; import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { public static String getNumKb(long number) { NumberFormat formatter = new DecimalFormat("###,###"); return formatter.format(number) + ""; } }