Skip to content

Commit

Permalink
Update Java程序设计题.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Snailclimb committed Mar 4, 2020
1 parent f5afdf3 commit f13050f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/java/Java程序设计题.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ public class MyStack {

//TODO:返回栈顶元素并出栈
private int pop() {
count--;
if (count == -1)
throw new IllegalArgumentException("Stack is empty.");

count--;
return storage[count];
}

Expand Down

0 comments on commit f13050f

Please sign in to comment.