Skip to content

Commit 1b3fbfd

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void add(int value) {
7575
LinkedListNode tail = tail();
7676
if (tail == null) {
7777
head = new LinkedListNode(value, null);
78-
}
78+
} else {
7979

8080
tail.setNext(new LinkedListNode(value, null));
8181
}

0 commit comments

Comments
 (0)