substring(beginIndex , endIndex)就是左闭右开区间的好吗,不确定的话,有些人能不能查了再说话
2016-07-10
删除那里的循环有点搞笑,明明就执行一遍根本不需要循环,非得又是while又是continue又是break
2016-07-10
抄的SinLaPis的。
Error是系统错误类;
VirtualMachineError是Error子类;
Thread是线程类;
Exception 是异常类,自定义异常要继承与Exception类或者其子类;
Error是系统错误类;
VirtualMachineError是Error子类;
Thread是线程类;
Exception 是异常类,自定义异常要继承与Exception类或者其子类;
表述正确的是
1:catch 块跟在try语句屁股后面,可以是好几个catch
2:catch块也有参数,这个参数是某种异常类的对象。
3:多重catch语句中,异常类型必须子类在前,父类在后!
1:catch 块跟在try语句屁股后面,可以是好几个catch
2:catch块也有参数,这个参数是某种异常类的对象。
3:多重catch语句中,异常类型必须子类在前,父类在后!
public String test2(){
return"说好的不打飞机,根本做不到啊,"}
return"说好的不打飞机,根本做不到啊,"}
2016-07-10
public void mathTest(){
int [] arr = new int[10];
for (int i = 0; i < arr.length; i++) {
arr[i]=(int)(Math.random()*100);
}
System.out.println(Arrays.toString(arr));
}
int [] arr = new int[10];
for (int i = 0; i < arr.length; i++) {
arr[i]=(int)(Math.random()*100);
}
System.out.println(Arrays.toString(arr));
}
2016-07-10