public class HelloWorld
{
//程序的主函数入门
public staticvoid main(String args[])
{
System.out.println("Hello World!");
}
}
小知识点笔记:
1、Public 与static 均为修饰符,可互换
2、Public改成private ,相当于程序入口私有化,main方法,也就是程序无法运行
3、Static 去除,main为关键字,方法无法执行