1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Update LinkedList.md

This commit is contained in:
Nightingale07 2018-10-18 10:22:01 +08:00 committed by GitHub
parent 2d17edeb3e
commit 139350b55b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@ List list=Collections.synchronizedList(new LinkedList(...));
```java ```java
private static class Node<E> { private static class Node<E> {
E item;//节点值 E item;//节点值
Node<E> next;//前驱节点 Node<E> next;//后继节点
Node<E> prev;//后继节点 Node<E> prev;//前驱节点
Node(Node<E> prev, E element, Node<E> next) { Node(Node<E> prev, E element, Node<E> next) {
this.item = element; this.item = element;