lazy.java
来自「PracticalJAVACode 的源码」· Java 代码 · 共 18 行
JAVA
18 行
class Exception1 extends Exception
{}
class Exception2 extends Exception1
{}
class Exception3 extends Exception2
{}
class Lazy
{
public void foo(int i) throws Exception1
{
if (i==1)
throw new Exception1();
if (i==2)
throw new Exception2();
if (i==3)
throw new Exception3();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?