诛仙十年金归:java编程 为什么不能运行

来源:百度文库 编辑:高校问答 时间:2024/05/03 10:32:19
import java.io.*;
public class Say_love_to_you{
public static void main(String args[])throw IOException
{
InputStreamReader reader=new InputStreamReader(System.in);
BufferedReader input =new BufferedReader (reader);
System.out.print("Enter your name :");
String name =input.readline();
System.out.println("Hi, I love"+name +"!");
}
}

帮你改好了
import java.io.*;
public class Say_love_to_you{
public static void main(String args[])throws IOException
{
InputStreamReader reader=new InputStreamReader(System.in);
BufferedReader input =new BufferedReader (reader);
System.out.print("Enter your name :");
String name =input.readLine();
System.out.println("Hi, I love"+name +"!");
}
}