From dfcff9b1481beef2a92c95ee8a9edf8a7478c530 Mon Sep 17 00:00:00 2001 From: aptkid Date: Thu, 9 May 2019 20:05:09 +0800 Subject: [PATCH] Update LinkedList.md --- docs/java/collection/LinkedList.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/java/collection/LinkedList.md b/docs/java/collection/LinkedList.md index 983c1fae..d26bc752 100644 --- a/docs/java/collection/LinkedList.md +++ b/docs/java/collection/LinkedList.md @@ -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); /************************** 遍历操作 ************************/