-
工具:jdk8、 Notepad++
-
步骤:1.创建helloworld.java 文件;
2.用Notepad++打开文件写入,保存
public class helloworld{ public static void main(String[] args){ System.out.println("Hello,World!"); } } -
编译:打开helloworld.java下的cmd,输入:
javac helloworld.java
编译成功后
java helloworld
运行成功



