Here you can find the source of formatThousandMoney(String moneyStr)
private static String formatThousandMoney(String moneyStr)
//package com.java2s; //License from project: Apache License public class Main { private static String formatThousandMoney(String moneyStr) { int money = Integer.valueOf(moneyStr).intValue(); return money == 0 ? "" : Integer.toString(money); }//from w w w . j a v a2 s. c om }