democustexceptions.java
来自「国外的数据结构与算法分析用书」· Java 代码 · 共 19 行
JAVA
19 行
public class DemoCustExceptions
{
public static void main(String args[])
{
Stack s = new Stack(5);
s.push(new Integer(1));
s.push(new Integer(2));
s.push(new Integer(3));
s.push(new Integer(4));
s.push(new Integer(5));
System.out.println(s);
s.push(new Integer(6));
try
{
System.out.println(s.top());
}catch(IllegalTopException e){}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?