如果定义的数组为 int score[];怎么用foreach呢?中间的 元素变量是代表什么?
这样写 for(int i:score){
}
中间代表元素 i 表示的是 score[ index];
for(int s:score){ System.out.println(s);
这样可以输出数组