1:创建一个java文件
1) vi HelloWorld.java
2)i 进入编辑模式,写java代码
3)esc 进入底行模式
:wq 保存并退出
2:编译创建的.java文件
javac HelloWrold.java
3:运行经过编译后的.class文件
java HelloWrold