第一篇Java代码 public class Hello{ public static void main(String[] args) { System.out.println("helloworld"); } } 打开cmd 编译 javac Hello.java运行 java Hello