摘要:
将1—100之间的所有正整数存放在一个List集合中,并将集合中索引位置是10的对象从集合中移除。 阅读全文
摘要:
建立exception包,建立Bank类,类中有变量double balance表示存款,Bank类的构造方法能增加存款,Bank类中有取款的发方法withDrawal(double dAmount), 当取款的数额大于存款时,抛出InsufficientFundsException,取款数额为负数 阅读全文
摘要:
package exception; public class TestException { public static void main(String[] args) { try{ for(int i=0;i<4;i++) { int k; switch(i) { case 0: int ze 阅读全文