摘要: 1.日期格式的 2.时间戳 http://www.cnblogs.com/cc-java/p/6699045.html 阅读全文
posted @ 2018-11-12 15:11 twoheads 阅读(3826) 评论(0) 推荐(0) 编辑
摘要: 不加L的话,默认就是int型了。 当给long赋值一个超过int范围的值的时候,会出问题。 java中对字面的数值是以int的形式来表示的 例如:long l= 6553555522222 报错:The literal 6553555522222 of type int is out of rang 阅读全文
posted @ 2018-11-12 11:29 twoheads 阅读(1984) 评论(0) 推荐(1) 编辑