Java tutorial
//package com.java2s; import java.text.NumberFormat; public class Main { public static String toNumberFormat(long value) { NumberFormat nf = NumberFormat.getNumberInstance(); nf.setMaximumFractionDigits(0); return nf.format(value); } }