We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 093c03a commit ff09ef0Copy full SHA for ff09ef0
src/com/mehmetpekdemir/stack/arraystack/ArrayStack.java
@@ -49,7 +49,7 @@ public Employee peek() {
49
}
50
51
public boolean isEmpty() {
52
- return top == 0;
+ return top == -1;
53
54
55
public int size() {
0 commit comments