Skip to content

Commit 84ad074

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

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
@@ -96,7 +96,7 @@ public void push(int value) {
9696
*/
9797
public LinkedListNode pop() {
9898
LinkedListNode popped = head;
99-
head = head.getNext();
99+
head = head.next();
100100
return popped;
101101
}
102102

0 commit comments

Comments
 (0)