在Java裡,要讓float或double型態輸出成整數或一定的格式,通常都會使用printf來控制 ... 11, System.out.println(formatter.format( 0.350 )); ...
確定! 回上一頁