JAVA之容器

一、图结构 二、     对于HashSet和HashMap自定义对象需要重写equals和Hashcode方法    对于List自定义对象需要实现Comparable接口,重写compareTo方法    对于List,Collections有几个方法:    sort:顺序    reverse:倒序    shuffle:随机    binarySearch:折半查找
相关文章
相关标签/搜索