
工具
qq_30184931
这个作者很懒,什么都没留下…
展开
-
Calendar有关时间的工具方法
/** * 获取本月天数 */public static int getDaysOfMonth(Date date ){ Calendar cal=Calendar.getInstance(); cal.setTime(date); return cal.getActualMaximum(cal.DAY_OF_MONTH);}/** * 获取日期中日 */p原创 2016-12-08 17:31:28 · 353 阅读 · 0 评论 -
有关小数的取舍
Javadouble a=1.66561,保留两位小数,不进行四舍五入a-Math.floor(a*100d)/100 ->a=1.66 2保留两位小数,并且四舍五入a=Math.round(a*100)/100 ->a=1.673.小数取整,不进行四舍五入a=(Integer)a -> a=14.取整,四舍五入a=Math.round(a原创 2016-12-29 01:30:08 · 532 阅读 · 0 评论 -
(转)ntelliJ IDEA 15 激活码(破解)
转载地址:https://blog.youkuaiyun.com/liyanlei5858/article/details/54289264http://idea.lanyus.com/ 点击“获得注册码”按钮,复制获得的注册码,然后到 IntelliJ IDEA中Help->Register->Activation code把注册码黏贴的框里,点“OK”即可...转载 2018-07-14 15:48:18 · 1410 阅读 · 0 评论