摘要: Collection接口常用方法: boolean add(E e) 把给定的对象添加到当前集合中。 void clear() 清空集合中所有的元素。 boolean remove(E e) 把给定的对象在当前集合中删除。 boolean contains(E e) 判断当前集合中是否包含给定的对象 阅读全文
posted @ 2022-05-16 22:29 草莓小甜心 阅读(39) 评论(0) 推荐(0)