Skip to content

Commit 9af414b

Browse files
committed
Feat: camel case method variables
1 parent f9be98b commit 9af414b

File tree

1 file changed

+5
-5
lines changed
  • lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12

1 file changed

+5
-5
lines changed

lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12/Stack.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ public Stack() {
99
}
1010

1111
public void push(int value) {
12-
ListNode tophat = new ListNode(value);
13-
tophat.next = top;
14-
top = tophat;
12+
ListNode topHat = new ListNode(value);
13+
topHat.next = top;
14+
top = topHat;
1515
}
1616

1717
public int pop() {
18-
int headnumber = top.val;
18+
int headNumber = top.val;
1919
top = top.next;
20-
return headnumber;
20+
return headNumber;
2121
}
2222

2323
public int peek() {

0 commit comments

Comments
 (0)