Java Number Format numberFormat(int num)

Here you can find the source of numberFormat(int num)

Description

number Format

License

Open Source License

Declaration

public static String numberFormat(int num) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.NumberFormat;

public class Main {
    public static String numberFormat(int num) {
        NumberFormat nf = NumberFormat.getInstance();
        return nf.format(num);
    }//from   w ww  . jav a2 s .  c o m

    public static String numberFormat(long num) {
        NumberFormat nf = NumberFormat.getInstance();
        return nf.format(num);
    }
}

Related

  1. formatTo2Digit(int number)
  2. NumberFormat(double str, int max, int min)
  3. numberFormat(double value, String format)
  4. numberFormat(int fractionDigits, Locale locale)
  5. numberFormat(int i)
  6. numberFormat(Number number, String... pattern)
  7. numberFormat(String pattern, BigDecimal number)
  8. numberFormat(String pattern, double value)
  9. numberFormate(double num)