|
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
请问这是为什么?
|
|