当前位置: 首页 > news >正文

helloworld的输出

public class hello
{public static void main(String[] args){System.out.print("helloword");}
}

hello类名和文件名hello.java一样

cmd编译Java文件

1、cmd当前Java文件目录
2、javac hello.java出现hello.class
3、Java hello编译出现结果
image