?? testexceptionsequence.java.txt
字號:
package ch7.section7_4;
import java.io.IOException;
public class TestExceptionSequence {
public static void main(String[] args) {
TestExceptionSequence test = new TestExceptionSequence();
try {
test.method1();
} catch (IOException e) {
e.printStackTrace();
}
}
public void method1() throws IOException {
method2();
}
public void method2() throws IOException {
method3();
}
public void method3() throws IOException {
throw new IOException("IOException occur in method3");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -