初学者求大神指点
myeclipse吧
全部回复
仅看楼主
level 1
我编的代码如图,运行的时候老是报错,出现了这个,
Thread [main] (Suspended (exception ArrayIndexOutOfBoundsException))
<obsolete method in<unknown declaring type>>
哪位大神知道这个怎么解决啊
2015年08月23日 01点08分 1
level 1
数组越界
将int[] a = new int[]{};改成int[] a = new int[10];
2015年08月23日 01点08分 2
level 2
定义数组没指定长度,不要大括号,循环里面最好用i<a·length
2015年08月23日 02点08分 3
level 1
你的下标越界。。 即。 你的a数组的size为0,
但是你去取第0个下标, 发现取不到,就越界了!
2015年08月24日 13点08分 4
level 1
int[] a = new int[]{}; 改成int[] a = new int[10];
2015年10月03日 11点10分 5
level 7
初始化数组时指定长度!
2015年10月04日 02点10分 6
level 9
花括号
2015年10月04日 07点10分 7
1