集合
文章平均质量分 57
A new o
这个作者很懒,什么都没留下…
展开
-
实现单向链表
List接口代码 package com.jzx.jiekou; public interface List<E> { static final int ELEMENT_NOT_FOUND = -1; //添加数据 void add(E element); //插入元素到指定位置 void add(int index, E element); //清除所有的元素 void clear(); //删除单个数据 通过动态数组的原创 2021-05-12 22:20:01 · 64 阅读 · 0 评论 -
集合
集合 Collection集合(单列集合) Collection集合常用方法 方法名 说明 boolean add(E e) 添加元素 boolean remove(Object o) 从集合中移除指定的元素 boolean removeIf(Object o) 根据条件进行移除 void clear() 清空集合中的元素 boolean contains(Object o) 判断集合中是否存在指定的元素 boolean isEmpty() 判断集合是否为空 i原创 2021-04-22 22:52:01 · 83 阅读 · 0 评论