Skip to content

Commit

Permalink
Update LinkedList.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aptkid authored May 9, 2019
1 parent 3a1a9e2 commit dfcff9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/collection/LinkedList.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public class LinkedListDemo {
linkedList.add(3);
linkedList.removeFirstOccurrence(3); // 从此列表中移除第一次出现的指定元素(从头部到尾部遍历列表)
System.out.println("After removeFirstOccurrence(3):" + linkedList);
linkedList.removeLastOccurrence(3); // 从此列表中移除最后一次出现的指定元素(从头部到尾部遍历列表
linkedList.removeLastOccurrence(3); // 从此列表中移除最后一次出现的指定元素(从尾部到头部遍历列表
System.out.println("After removeFirstOccurrence(3):" + linkedList);

/************************** 遍历操作 ************************/
Expand Down

0 comments on commit dfcff9b

Please sign in to comment.