![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA笔记
shape_of_me
这个作者很懒,什么都没留下…
展开
-
获取当前系统时间毫秒时间戳,年月日时间戳
不新建实例,获取当前系统时间 new SimpleDateFormat("yyyyMMddHHmmss").format(System.currentTimeMillis()); //注:HH显示的是24小时制,hh显示的是12小时制 //获取毫秒时间戳 private static long getTimeMills(int year,int month,int d...原创 2019-03-18 10:43:06 · 3887 阅读 · 0 评论 -
reference所指向的只是GC堆上的内存地址的实操理解
今天写代码的时候,遇到一个问题,记下来提醒自己。 本意:循环对temp_AddMD5List赋值,并在每次循环中将其值保存在List中 List<Byte> temp_AddMD5List = new ArrayList<Byte>();//申明在循环外 for循环中重复对temp_AddMD5List赋值,最后再将其值添加到另一个List(这里就叫List吧)...原创 2019-07-30 17:23:21 · 161 阅读 · 0 评论