当前位置: 代码迷 >> J2SE >> The import java.util.Arrays cannot be resolved,该怎么解决
  详细解决方案

The import java.util.Arrays cannot be resolved,该怎么解决

热度:1546   发布时间:2016-04-23 20:28:05.0
The import java.util.Arrays cannot be resolved
本帖最后由 beiyue2005 于 2014-08-04 16:01:49 编辑
package com.xx;
import java.util.Arrays;

public class Score2 {
public static void main(String[] args){
int[] scores = new int[10];
for(int score: scores){
System.out.printf("%2d",score);

}
System.out.println();
System.out.println("--------------------");
Arrays.fill(scores, 60);
for(int score: scores){
System.out.printf("%3d",score);

}

}

}

------解决方案--------------------
java  的环境没配好吧。
------解决方案--------------------
jre环境有不?rt.jar包中的类
  相关解决方案