Skip to content

Commit f13050f

Browse files
committed
Update Java程序设计题.md
1 parent f5afdf3 commit f13050f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/java/Java程序设计题.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ public class MyStack {
7373

7474
//TODO:返回栈顶元素并出栈
7575
private int pop() {
76-
count--;
7776
if (count == -1)
7877
throw new IllegalArgumentException("Stack is empty.");
79-
78+
count--;
8079
return storage[count];
8180
}
8281

0 commit comments

Comments
 (0)