2011年4月23日
摘要: 1、try,catch,finally总结:程序1:package com.trycatch.test6;publicclass TryCatchTest6 {publicstaticvoid main(String[] args) {int a[] = { 1, 2, 3 };try {// int b=5/0;for (int i =0; i < a.length; i++) {System.out.println("a=="+ a[i]);}int b =5/0; }catch (ArithmeticException e) {System.out.printl 阅读全文
posted @ 2011-04-23 18:41 snowdrop 阅读(3938) 评论(2) 推荐(0)