Java问题_Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
问题:Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException问题分析:Array Index Out Of Bounds Exception,数组索引越界。比如说定义了一个长度为3的数组,索引值肯定是0-2。for循环里的判断条件却多循环了1次,导致最后让输出索引值为3的数据,数组是没有分配索引3的空间的,就会...