Class c=Class.forName(args[0]);編譯異常
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.imooc.reflect.OfficeBetter.main(OfficeBetter.java:9)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.imooc.reflect.OfficeBetter.main(OfficeBetter.java:9)
2018-10-27
舉報
2018-10-27
沒有輸入?yún)?shù),要在cmd編譯代碼的時候給命令行參數(shù)輸入,例如