java 程序运行时,老是出现Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5

日期:2010-09-29 18:27:44 人气:3

java 程序运行时,老是出现Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5

很简单 package paixu; import java.util.Scanner; public class Test { public static void main(String[] args) { System.out.println("请输入要排序的数:"); int a[] = new int[5]; for (int i = 0; i < a.length; i++) { Scanner scanner = ne
    A+
热门评论