File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 55- [ 内部结构分析] ( #内部结构分析 )
66- [ LinkedList源码分析] ( #linkedlist源码分析 )
77 - [ 构造方法] ( #构造方法 )
8- - [ 添加(add)方法] ( #添加(add)方法 )
8+ - [ 添加(add)方法] ( #add方法 )
99 - [ 根据位置取数据的方法] ( #根据位置取数据的方法 )
1010 - [ 根据对象得到索引的方法] ( #根据对象得到索引的方法 )
1111 - [ 检查链表是否包含某对象的方法:] ( #检查链表是否包含某对象的方法: )
12- - [ 删除(remove/pop)方法] ( #删除(removepop)方法 )
13- - [ LinkedList类常用方法测试:] ( #linkedlist类常用方法测试: )
12+ - [ 删除(remove/pop)方法] ( #删除方法 )
13+ - [ LinkedList类常用方法测试:] ( #linkedlist类常用方法测试 )
1414
1515<!-- /MarkdownTOC -->
1616
@@ -54,7 +54,7 @@ private static class Node<E> {
5454 addAll(c);
5555 }
5656```
57- ### <font face =" 楷体 " id =" 3.2 " >添加(add)方法 </font >
57+ ### <font face =" 楷体 " id =" 3.2 " >add方法 </font >
5858** add(E e)** 方法:将元素添加到链表尾部
5959``` java
6060public boolean add(E e) {
@@ -288,7 +288,7 @@ public int lastIndexOf(Object o) {
288288 return indexOf(o) != - 1 ;
289289 }
290290```
291- ###<font face =" 楷体 " id =" 3.6 " >删除(remove/pop)方法 </font >
291+ ###<font face =" 楷体 " id =" 3.6 " >删除方法 </font >
292292** remove()** ,** removeFirst(),pop():** 删除头节点
293293```
294294public E pop() {
@@ -388,7 +388,7 @@ public E remove(int index) {
388388 return unlink(node(index));
389389 }
390390```
391- ## <font face =" 楷体 " id =" 4 " >LinkedList类常用方法测试</font >:
391+ ## <font face =" 楷体 " id =" 4 " >LinkedList类常用方法测试</font >
392392
393393``` java
394394package list ;
You can’t perform that action at this time.
0 commit comments