抛出异常
package com.CoderLB;
public class Test {
public static void main(String[] args) {
//调用处没做任何处理
fun();
}
public static void fun() throws ArithmeticException,NumberFormatException,ArrayIndexOutOfBoundsException{
System.out.println("程序开始");
String [] strs = {
"1234","11"};
System.out.println(Integer.parseInt(strs[0])/Integer.parseInt(strs[-1]));
System.out