摘要: Collection中共用的方法: public boolean add(E e):把给定的对象添加到集合中 public void clear():清空集合中所有的元素 public boolean remove(E e):把给定的对象在集合中删除 public boolean contains( 阅读全文
posted @ 2020-11-06 14:05 Joyce502 阅读(76) 评论(0) 推荐(0)
摘要: 1.Date 最常用的两个方法: (1)获取当前日期: new Date(); Date date = new Date();System.out.println(date);//Thu Nov 05 16:57:02 CST 2020 (2)获取毫秒数:new Date().getTime();这 阅读全文
posted @ 2020-11-06 12:55 Joyce502 阅读(155) 评论(0) 推荐(0)