public class Hello{ public static void main(String[]args){ System.out.println("Hello World!"); } } //在命令行输入javac Hello.java,按下回车,就编译了