异常名称:数组越界Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2at Domo.main(Domo.java:8)案例:int[] scores =new int[2];scores[0]=90;scores[1]=85;scores[2]=65;出现原因:超出数组数量解决方案:数组长度重新定义