12.55 剛發現一個class有這樣一個method可提供四捨五入,真方便。 不過面試的 考官規定不能使用java api來實作 Angry ... 可以直接+0.5,取整數.
www.javaworld.com.tw