[求助]我用的不是版本J2SE 1.5,请问我最后那个程序应该怎么修改好?
import java.util.Scanner;
public class ScannerDemo {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("请输入您的名字:");
System.out.printf("哈罗!%s!\n",scanner.next());
}
}