正在加载图片...
例外处理入 以下应用例外处理的方式就不适当 while(true) try t System. out. println(args[i])i +; catch(ArrayIndexOutofBounds Exception e)t 下面的方式才是正确的 for(int i=0; i< args. length i++) System. out. println(args[i])i例外处理入门 • 以下应用例外处理的方式就不适当 • 下面的方式才是正确的 while(true) { try { System.out.println(args[i]); i++; } catch(ArrayIndexOutOfBoundsException e) { // .... } } for(int i = 0; i < args.length; i++) { System.out.println(args[i]); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有