SmileLight
2010年1月12日 星期二
千分號顯示
import java.text.DecimalFormat;
DecimalFormat format2 = new DecimalFormat("###,###,###");
int money = 1000;
String moneyComa = format2.format(money);
System.out.pirntln(moneyComa); //1,000;
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言