创建名为hello.java的文件
hello,world!编译
public class hello{ public static void main(String[] args){ System.out.print("Hello,world!"); } }
文件名与类名需要保持一致。
代码注意大小写,dos命令无法运行可能是代码规范问题。
hello,world!
原文:https://www.cnblogs.com/clickzq/p/14953155.html