We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9be98b commit 9af414bCopy full SHA for 9af414b
lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12/Stack.java
@@ -9,15 +9,15 @@ public Stack() {
9
}
10
11
public void push(int value) {
12
- ListNode tophat = new ListNode(value);
13
- tophat.next = top;
14
- top = tophat;
+ ListNode topHat = new ListNode(value);
+ topHat.next = top;
+ top = topHat;
15
16
17
public int pop() {
18
- int headnumber = top.val;
+ int headNumber = top.val;
19
top = top.next;
20
- return headnumber;
+ return headNumber;
21
22
23
public int peek() {
0 commit comments