catch里面加上throw new RuntimeException(e);需要在方法上再抛出异常throws RuntimeException
public class Test {
public void do1(List
System.out.println(strs);
}
public static void main(String[] args) {
new Test1().do1((List
}
}
class A{
public static
return null;
}
}