try
{
Scanner s = new Scanner(System.in);
Integer a = s.nextInt();
Integer b = s.nextInt();
int c = a/b;
// int a = Integer.parseInt(args[0]);
// int b = Integer.parseInt(args[1]);
// int c = a/b;
System.out.print("相除结果是:" + c);
}
catch(IndexOutOfBoundsException ie)
{
System.out.print("数组越界");
}
catch(NumberFormatException ne)
{
System.out.print("数字格式异常");
}
catch(ArithmeticException ae)
{
System.out.print("算术异常");
}
catch(Exception e)
{
System.out.print("未知异常");
}
{
Scanner s = new Scanner(System.in);
Integer a = s.nextInt();
Integer b = s.nextInt();
int c = a/b;
// int a = Integer.parseInt(args[0]);
// int b = Integer.parseInt(args[1]);
// int c = a/b;
System.out.print("相除结果是:" + c);
}
catch(IndexOutOfBoundsException ie)
{
System.out.print("数组越界");
}
catch(NumberFormatException ne)
{
System.out.print("数字格式异常");
}
catch(ArithmeticException ae)
{
System.out.print("算术异常");
}
catch(Exception e)
{
System.out.print("未知异常");
}