这两个遍历数组有什么区别?
for (int score : scores) {
System.out.println(score);
}
for (int i=0;i<scores.length;i++ ) {
System.out.println(score);
}
for (int score : scores) {
System.out.println(score);
}
for (int i=0;i<scores.length;i++ ) {
System.out.println(score);
}
2016-09-05
举报