Here you can find the source of humanReadableNumber(long total)
public static String humanReadableNumber(long total)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Locale; public class Main { public static String humanReadableNumber(long total) { DecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US); return formatter.format(total); }//from w w w . j a v a 2s .c om }