上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 108 下一页
摘要: 什么是Comparable public interface Comparable<T> { /** * Compares this object with the specified object for order. Returns a * negative integer, zero, or 阅读全文
posted @ 2020-07-30 23:05 陈彦斌 阅读(301) 评论(0) 推荐(0)
摘要: Collections工具类 Java里关于聚合的工具类,包含有各种有关集合操作的静态多态方法,不能实例化(把构造函数私有化) public class Collections { // Suppresses default constructor, ensuring non-instantiabi 阅读全文
posted @ 2020-07-30 00:10 陈彦斌 阅读(701) 评论(0) 推荐(0)
摘要: 什么是迭代器 使用循环遍历集合 普通for循环 for(int i=0;i<10;i++){} 增强for循环 for(String str:list){} 什么是迭代器Iterator Iterator是Java中的一个接口,核心作用就是用来遍历容器的元素,当容器实现了Iterator接口后,可以 阅读全文
posted @ 2020-07-29 22:55 陈彦斌 阅读(385) 评论(0) 推荐(0)
摘要: json转map Map<String, 实体类> titleMap=JSON.parseObject(JSON字符串, new TypeReference<HashMap<String, 实体类>>() {}); json转对象 Student student = JSON.parseObject 阅读全文
posted @ 2020-07-29 17:57 陈彦斌 阅读(289) 评论(0) 推荐(0)
摘要: 类注解 打开file->setting->Editor->File and Code Templates->Includes->File Header #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end 阅读全文
posted @ 2020-07-29 08:41 陈彦斌 阅读(746) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 108 下一页