摘要: Set类 迭代器 迭代器相当于指针,常用next() hasNext()(返回布尔型)方法 不能一边迭代一边删除(解决办法使用迭代器的删除方法不能使用集合类) HashSet<String> hs = new HashSet();hs.add("hello");hs.add("China");hs. 阅读全文
posted @ 2022-03-15 17:41 不会一直是菜鸟 阅读(98) 评论(0) 推荐(0)