Skip to content

Commit 6610010

Browse files
armeetjphrdang
andauthored
Update src/com/codefortomorrow/advanced/chapter16/solutions/LinkedList.java
Co-authored-by: Rebecca Dang <[email protected]>
1 parent 1b3fbfd commit 6610010

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/codefortomorrow/advanced/chapter16/solutions/LinkedList.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ public void add(int value) {
7777
head = new LinkedListNode(value, null);
7878
} else {
7979

80-
tail.setNext(new LinkedListNode(value, null));
80+
tail.setNext(new LinkedListNode(value, null));
81+
}
8182
}
8283

8384
/**

0 commit comments

Comments
 (0)