public class HelloWorld{ // 类名最好与文件名一致 public static void main(String[] args){ // 程序的入口 System.out.println("HelloWorld");// 以分号结尾 } }