摘要: 第一部分:外部结构或类 [修饰符] class 类名{ } 第二部分 :程序的入口及main方法 注:1.main方法必须编写在类中 2.一个类中的main方法是可有可无的 3.当没有main方法时程序可以编译,但是不能运行,否则出现运行错误 class Student{ public static 阅读全文
posted @ 2020-09-27 00:11 SmallCactus 阅读(573) 评论(0) 推荐(0)