刺棱.cian的博客11.1 枚举 (1) 使用枚举类型设置常量 在项目中创建Constants接口,在接口中定义常量的常规方式。 public interface Constants{ public static final int Constants_A=1; public static final int Constants_B=12; ...
T烟雨醉相思的博客11.1 枚举 枚举是一种数据类型,...11.1.1 使用枚举类型设置常量 定义常量的常用形式: public interface Contants { public static final int Constants_A=1; public static final int Constants_B=12; } ...