救命啊,哪错了,大侠帮看看啊
package xian;public class xian1{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
System.out.print("请输入学生分数: ");
int scoreOfStudent = scanner.nextInt();
System.out.println("该生是否及格? " +
(scoreOfStudent >= 60 ? '是' : '否'));
}
}
错误显示,
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Scanner cannot be resolved to a type
Scanner cannot be resolved to a type
at xian.xian1.main(xian1.java:4)