从 Class中获取信息 ry Class c =Class forName(args[o])i Package p =c. getPackage()i System. out. println(p getName())i catch(Array IndexOutofBoundsException e) System.out. print1n("没有指定类别"); catch(ClassNotFoundException e)t System.out. print1n("找不到指定类别")从Class中获取信息 try { Class c = Class.forName(args[0]); Package p = c.getPackage(); System.out.println(p.getName()); } catch(ArrayIndexOutOfBoundsException e) { System.out.println("没有指定类别"); } catch(ClassNotFoundException e) { System.out.println("找不到指定类别"); }