?? first_exception.java
字號:
class first_exception{
public static void main(String args[]){
char c; int a,b=0;int[] array=new int[7];
String s="Hello";
try {
a=1/b;
}catch(ArithmeticException ae) {
System.out.println("Catch "+ae);
}
try {
array[8]=0;
}catch(ArrayIndexOutOfBoundsException ai){
System.out.println("Catch "+ai);
}
try{
c=s.charAt(8);
}catch(StringIndexOutOfBoundsException se){
System.out.println("Catch "+se);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -