Re: [問題] 關於 output format

看板java作者 (骨頭)時間19年前 (2007/03/20 23:37), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《darkmiz (what u doing)》之銘言: : 像 c code 裡 printf(" %6d ", a ); : ^^^^^^^ : 這種東西要怎麼用Java表現出來? : 我有查到Sytem.out.format的東西,但是不會用 : 希望各位大大指導一下 <code> int a=15; System.out.printf(" %6d " ,a); </code> as simple as what you see, Java also support String.format(String fomat,Object... values); API: http://0rz.tw/b62sv notice: since 1.5 -- I am a person, and I am always thinking . Thinking in love , Thinking in life , Thinking in why , Thinking in worth. I can't believe any of what , I am just thinking then thinking , but worst of all , most of mine is thinking not actioning... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.134.27.68
文章代碼(AID): #15__-V0Q (java)
文章代碼(AID): #15__-V0Q (java)