您的位置: 首页 > 文章 > JAVA之容器 JAVA之容器 分类: 文章 • 2025-03-14 11:29:45 一、图结构 二、 对于HashSet和HashMap自定义对象需要重写equals和Hashcode方法 对于List自定义对象需要实现Comparable接口,重写compareTo方法 对于List,Collections有几个方法: sort:顺序 reverse:倒序 shuffle:随机 binarySearch:折半查找