Java Number Format Pattern formatLong(long value)

Here you can find the source of formatLong(long value)

Description

format Long

License

Apache License

Declaration

public static String formatLong(long value) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class Main {
    public static String formatLong(long value) {
        NumberFormat formatter = new DecimalFormat("#,###,###");
        return formatter.format(value);
    }/*from   w w w.j a  v  a2 s  . com*/
}

Related

  1. formatiereSpeichergroesse(long bytes)
  2. formatIncludeCommas(final Number object)
  3. formatInt(final int number)
  4. formatInteger(Object obj)
  5. formatIntoCurr(String str_number, int digits)
  6. formatNumber(final long number)
  7. formatNumber(final long number)
  8. formatNumber(int num)
  9. formatNumber(int source)