摘要:
自定义注解 @Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE,TYPE_PARAMETER,TYPE_USE}) @Retention(RetentionPolicy.RUNTIME) public @inter 阅读全文
摘要:
//定义的枚举类默认继承于java.lang.Enum类 public enum SeasonEnum { //1.提供当前枚举类的对象,多个对象之间用","隔开,末尾对象";"结束 SPRING("春天",20), SUMMER("夏天",35), AUTUMN("秋天",25), WINTER( 阅读全文