package a;
public class Demo01_TestMainFunction
{
public Demo01_TestMainFunction()
{
}
//case1
//private static void main(String[] args)
//The method main(String[]) from the type Demo01_TestMainFunction is never used locally
//case2
//static void main(String[] args)
//protected static void main(String[] args)
//
//右键 - Run As - Java Application 根本就显示不出来
//固定写法,程序入口
public static void main(String[] args)
{
}
}
main function
最新推荐文章于 2025-08-10 17:56:39 发布