例外处理入门 public class checkArgs Demo i public static void main(string[] args)[ try i System.out. printf("执行号s功能器n",args[01); catch (Array IndexOutofBoundsException e) System.out. println("没有指定自变量"); e printstackTrace()i例外处理入门 public class CheckArgsDemo { public static void main(String[] args) { try { System.out.printf("执行%s功能%n", args[0]); } catch(ArrayIndexOutOfBoundsException e) { System.out.println("没有指定自变量"); e.printStackTrace(); } } }