摘要:
JDK学习之Enum enum的使用 在没有enum之前如果想要定义一些常量,就会采用如下的方式 假设要定义四个常量表示不同的季节 public class SeasonWithoutEnum { public static final int spring=1; public static fin 阅读全文
posted @ 2020-11-28 16:32
南风知我不易
阅读(97)
评论(0)
推荐(0)
|
摘要:
JDK学习之Enum enum的使用 在没有enum之前如果想要定义一些常量,就会采用如下的方式 假设要定义四个常量表示不同的季节 public class SeasonWithoutEnum { public static final int spring=1; public static fin 阅读全文
posted @ 2020-11-28 16:32
南风知我不易
阅读(97)
评论(0)
推荐(0)
|