[求助]请问如何在1.4下导入Scanner的方法,谢谢了(学习JAVA进步中……)
import java.util.Scanner;
public class ConditionalOperator {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("请输入学生分数:");
int scoreOfStudent = scanner.nextInt();
System.out.println("该生是否及格?" +
(scoreOfStudent >= 60 ? '是':'否'));
}
}
请教各位:如果不是JDK1.5如何将Scanner导入呢?谢谢