Here you can find the source of formatTokens(long tokens)
public static String formatTokens(long tokens)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; public class Main { private static final DecimalFormat format = new DecimalFormat("#,###"); public static String formatTokens(long tokens) { return format.format(tokens); }/* w w w . j av a 2 s.c om*/ }