要怎样改才可以
int[] scores = new int[10]; // 创建数组的时候必须规定数组大小,如需动态扩容请自行查询。 for(int i = 0; i < scores.length; i++){ scores[i] = sc.nextInt(); }