Skip to content

Commit 9048daf

Browse files
committed
fix: improve code formatting in pop method of Stack.java
1 parent 946a92f commit 9048daf

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public void push(int value) {
1515
}
1616

1717
public int pop() {
18-
int value = top.val; // gets the value of top and creating it as a variable value that will temporarily
18+
int value =
19+
top.val; // gets the value of top and creating it as a variable value that will temporarily
1920
// store it
2021
top = top.next; // Move top to the next position in the stack this instance it would be whatever
2122
// is below the top node.

0 commit comments

Comments
 (0)