java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 解决方法
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0当我们使用二维数组时,例如public int[] testArray(int[][] nums) { int row = nums.length; int col = nums[0].length;...}上述程序就可能会报java.lang.ArrayIndexOutOfBoundsException: Index .
原创
2020-06-05 11:57:01 ·
73323 阅读 ·
0 评论