📄 democustexceptions.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -