改成这样:
import java.io.*;
public class Java1
{
public static void main(String[] args) throws IOException
{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter your name");
String name = input.readLine(); //刚才你这个readLine()的L没有大写
System.out.println("Hello,"+ name +"!");
}
}
你要引入java.lang.*这个包