import java.io.*;
public class hello { //创建类hello
public static void main(String[] args) {//添加主函数
// TODO Auto-generated method stub
System.out.println("hello,java!");//调用方法
}
}
结果为:
知识点:
.类的定义
.mian的方法
.在命令行编译和运行java程序