Skip to content

Commit e92fb41

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

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
@@ -61,7 +61,7 @@ public LinkedListNode tail() {
6161
if (current == null) return null;
6262

6363
while (current.getNext() != null) {
64-
current = current.getNext();
64+
current = current.next();
6565
}
6666

6767
return current;

0 commit comments

Comments
 (0)