import java.util.*;
public class Exception {
public static void main(String[] args) {
for(int n=1;n<=3;n++){
try{
System.out.println("输入第"+n+"组数");
System.out.println("请输入两个整数,空格分隔,回车结束: ");
Scanner in=new Scanner(System.in);
int a=in.nextInt();
int b=in.nextInt();
System.out.println("第"+n+"组两整数的商:"+a+"/"+b+"="+a/b);
}
catch(ArithmeticException e){
System.out.println("发生了除数为错误!请重新输入!");
n--;
}
catch (Exception e){
System.out.println("未按要求的典型输入,请重新输入整数!");
n--;
}
}
}
}
第二种异常语句出提示:Type mismatch: cannot convert from Exception to Throwable
请问应该怎么更改?