使用foreach时候,不能用Arrays.String()输出吗
package com.imooc;
import java.util.Arrays;
public class imooc6_8 {
public static void main(String[] args) {
int[] scores = { 89, 72, 64, 58, 93 };
Arrays.sort(scores);
for (int score:scores){
System.out.println(Arrays.toString(score));
}
}
}