如何实现" String.format()"在Java?

时间:2015-12-10 19:58:55

标签: java

我正在尝试格式化为任何小于10的值添加零,所以09.所以在循环结束时,"总计"值将格式化为小于10的数字,为零。

这是我的代码,但它仍然无法运行:

lrp.mxptint.net
lrpush.apxlv.com
lsa.measure.ly
lsa.measure.ly\lsa.js?1449665894174&meta_keywords=Life%2C%20lifestyle%2C%20fashi‌​on%2C%20beauty%2C%20Vancouver%2C%20British%20Columbia%2C%20family%2C%20relationsh‌​ips%2C%20home%2C%20blogs%2C%20news%2C%20jobs%2C%20content%2C%20pets%2C%20food%2C%‌​20beauty&autofire=true&windowlocation=www.vancouversun.com\life\diversions lsa.measure.ly\lsa.js?1449665960913&meta_keywords=horoscopes&autofire=true&windo‌​wlocation=news.nationalpost.com\category\life

0 个答案:

没有答案