2015年2月13日

ResourceBundle的使用

摘要: import java.text.MessageFormat;import java.util.MissingResourceException;import java.util.ResourceBundle;public class ConfKit{ private static final S... 阅读全文

posted @ 2015-02-13 15:18 汤能养身 阅读(435) 评论(0) 推荐(0)

【转】Java精确四则运算

摘要: /** * 由于Java的简单类型不能够精确的对浮点数进行运算,这个工具类提供精 确的浮点数运算,包括加减乘除和四舍五入。 */public class Arith { // 默认除法运算精度 private static final int DEF_DIV_SCALE = 10; // 这个... 阅读全文

posted @ 2015-02-13 15:07 汤能养身 阅读(146) 评论(0) 推荐(0)

导航