06 2021 档案

摘要:Map接口实现类特点 1 Map与Collection并列存在,用于保存具有映射关系的数据key-value 2 Map中的key个value可以是任何引用类型的数据,会封装到HashMap$Node对象中 3 Map中的Key不允许重复,原因和HashSet一样(查看源码) 4 Map中的Valu 阅读全文
posted @ 2021-06-29 11:27 chentaohere 阅读(67) 评论(0) 推荐(0)
摘要:一 HashSet HashSet实现了Set接口,实际上是HashMap,HashMap底层是(数组+链表+红黑树) 可以存放null值,但只能有一个null HashSet不保证元素是有序的,取决于hash后,在确定索引的结果(即,不保证存放元素的顺序和取出顺序一致) 不能有重复元素/对象 说明 阅读全文
posted @ 2021-06-28 17:47 chentaohere 阅读(141) 评论(0) 推荐(0)
摘要:一 ArrayList debug ArrayList new和add 1 ArrayList维护一个Objecet类型数据elementData transient Object[] elementData transient 表示瞬间,短暂的,表示该属性不会被序列化 2 当创建ArralyLis 阅读全文
posted @ 2021-06-28 10:33 chentaohere 阅读(79) 评论(0) 推荐(0)
摘要:单列集合 Collection接口两个子接口List,Set 双列集合 存放的键值对 阅读全文
posted @ 2021-06-26 15:09 chentaohere 阅读(23) 评论(0) 推荐(0)
摘要:快捷键提示:ctrl+j try/catch自动生成快捷键 :ctrl + alt + t while (iterator.hasNext()) 自生成快捷键:itit new 对象自动补全快捷键: .var public static void main(String[] args)自动生成快捷键 阅读全文
posted @ 2021-06-22 08:16 chentaohere 阅读(137) 评论(0) 推荐(0)
摘要:1. Adding devtoolls to your project <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runt 阅读全文
posted @ 2021-06-19 20:20 chentaohere 阅读(69) 评论(0) 推荐(0)