//java异常初识
public class test78 {
public static void main(String[] args) {
countArraylength( -1 );
}
public static int countArraylength(int length) {
int[] nums = new int[length];
return nums.length;
}
}
运行结果
java137-java异常初识
最新推荐文章于 2024-07-19 17:37:28 发布