数组下标问题
int[] scores = {64,72,93,89,58};
int num =0;
for(int score: scores){
System.out.println(score+"的下标是"+num);
num++
}
我这样写可以吗 求大神解答
int[] scores = {64,72,93,89,58};
int num =0;
for(int score: scores){
System.out.println(score+"的下标是"+num);
num++
}
我这样写可以吗 求大神解答
2018-10-31
举报