摘要: 一、HashSet 1.特点: 1.无序 2.元素唯一 3.无索引 2.常用方法:和set方法一样3.遍历: 1.转数组 2.迭代器 3.增强for 重写 hashCode、equals是的去重,否则不会对自定义类去重 public class MyHashSet { public static v 阅读全文
posted @ 2022-03-13 23:04 广深-小龙 阅读(40) 评论(0) 推荐(0)