import java.util.Scanner;
import java.util.Scanner.*;
import java.io.*;
class Test{
public static void main(String args[]){
Scanner in=new Scanner(System.in);//????
String name=in.nextLine();
String firstname=in.next();
System.out.println(name+ " "+firstname);
}
}
编译显示Severity and Description Path Resource Location Creation Time Id
Scanner cannot be resolved to a type Test Test.java line 5 1168064887935 1
Scanner cannot be resolved to a type Test Test.java line 5 1168064887935 2
请问这是为什么?
------解决方案--------------------
我运行你的代码没有任何问题呀,,是不是你的环境没有配置好
------解决方案--------------------
啥东西哦,是不是java啊
------解决方案--------------------
java.util.Scanner没有这个包呀