提交 f13050ff 编写于 作者: S shuang.kou

Update Java程序设计题.md

上级 f5afdf32
......@@ -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];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册