Java Locale Format formatInteger(int input)

Here you can find the source of formatInteger(int input)

Description

format Integer

License

Open Source License

Declaration

static public String formatInteger(int input) 

Method Source Code

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

import java.text.NumberFormat;

import java.util.Locale;

public class Main {
    static public String formatInteger(int input) {
        NumberFormat formatter = NumberFormat.getInstance(new Locale("en_US"));
        return formatter.format(input);
    }//from  w  w w  .  j  ava 2 s .  co m
}

Related

  1. formatFloat(float val)
  2. formatFraction2(final Number value)
  3. formatInCurrentDefaultLocale(double d)
  4. formatingDecimalNumber(Object obj, Locale locale, int maxIntPart, int maxFloatPart)
  5. formatInt(final int number)
  6. formatInteger(Long num)
  7. formatIntWithCommas(int num)
  8. formatLines(String target, int maxLength, Locale currentLocale)
  9. formatLocaleDate(final java.util.Date date)