public enum Vip {
vip1, vip2, vip3, vip4,vip5;
public static void main(String[] args) {
Vip vip=vip1, vip2, vip3, vip4,vip5;
switch (vip) {
case vip1:
System.out.println("当前等级为vip1");
break;
case vip2:
System.out.println("当前等级为vip2");
break;
case vip3:
System.out.println("当前等级为vip3");
break;
case vip4:
System.out.println("当前等级为vip4");
break;
case vip5:
System.out.println("当前等级为vip5");
break;
default:
break;
}
}
}