随笔分类 -  java基础

摘要:import java.util.Date; import java.text.DateFormat; /** * 格式化时间类 * DateFormat.FULL = 0 * DateFormat.DEFAULT = 2 * DateFormat.LONG = 1 * DateFormat.MEDIUM = 2 * DateFormat.SHORT = 3 * @author Mic... 阅读全文
posted @ 2019-03-28 15:48 Uarealoser 阅读(1372) 评论(0) 推荐(0)
摘要:1.Collection接口(是List,Set,Queue接口的父接口) 包含操作集合元素的方法: boolean add(Object o):该方法向集合中添加一个元素,如果集合对象被添加元素改变了,则返回true。 boolean addAll(Collection c):该方法把集合c里的元 阅读全文
posted @ 2019-03-22 15:47 Uarealoser 阅读(193) 评论(0) 推荐(0)
摘要:1、HashCode(); 2、 wait(); 3、 notify(); 4、equals(); 5、getClass(); 6、toString(); 7、clone(); 8、finalize(); 阅读全文
posted @ 2019-03-16 16:55 Uarealoser 阅读(450) 评论(0) 推荐(0)