摘要:
Collections 工具类 Collections addAll(Collection<T> elements); 往集合中添加元素 public static void shuffle(List < ?> list); 打乱集合顺序 public static <T> void sort (L 阅读全文
posted @ 2020-08-01 21:44
神也没办法
阅读(100)
评论(0)
推荐(0)
摘要:
LinkedList 集合 1.底层是一个链表结构 2.里面包含了大量操作首尾元素的方法 常用使用方法: 1.public void addFirst(E e); 指定元素插入列表开头 2.public void addLast(E e); 指定元素插入列表尾部 public E getFirst( 阅读全文
posted @ 2020-08-01 21:08
神也没办法
阅读(230)
评论(0)
推荐(0)
摘要:
List集合 List 有序,有索引,有允许重复的元素。 常用方法: public void add(int index, E element) ; 将特定的元素放到指定元素。 public E get (int index); 返回集合中指定位置元素 public E remove(int ind 阅读全文
posted @ 2020-08-01 20:31
神也没办法
阅读(161)
评论(0)
推荐(0)

浙公网安备 33010602011771号