错误堆栈: java.lang.ArrayIndexOutOfBoundsException: length=0; index=1 at android.support.v4.util.SimpleArrayMap.indexOf(SimpleArrayMap.java:83) at android.support.v4.util.SimpleArrayMap.put(SimpleArrayMap.java:381) 示例错误代码: final ArrayMap testArrayMap = n…
package test; public class Test { public static void main(String[] args) { final int num2 = Integer.parseInt(args[0]); } } 编译时,会报Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at test.Test.main(Test.java:7) 最终的结论是: 运行时忘了加…