2021年3月5日
摘要: 1.关键字:enum。枚举可以定义成单独的文件,也可以定义在其他类内部。 枚举在类内部的示例: public class EnumInner { public static void main(String[] args) { Day day=Day.MONDAY; } enum Day{ MOND 阅读全文
posted @ 2021-03-05 16:37 敲代码的小小酥 阅读(7902) 评论(0) 推荐(0) 编辑