Java tutorial
//package com.java2s; import java.text.NumberFormat; public class Main { public static String formatInteger2String(Integer formater) { try { NumberFormat nbf = NumberFormat.getInstance(); nbf.setMinimumFractionDigits(0); return nbf.format(formater); } catch (Exception e) { // TODO: handle exception return "-"; } } }