Here you can find the source of formatInt(final int number)
Parameter | Description |
---|---|
number | the int to format. |
public static String formatInt(final int number)
//package com.java2s; //License from project: Open Source License import java.text.NumberFormat; import java.util.Locale; public class Main { /**//w w w. j av a 2s. c o m * Format the given int to a int with ,'s in it. * * @param number the int to format. * @return The formated integer. */ public static String formatInt(final int number) { final NumberFormat formater = NumberFormat.getInstance(Locale.UK); return formater.format(number); } }