public class Test {
public enum Mj {
U1, U2, U3

}
public void doWhat(Mj chooseMj){
switch ( chooseMj) {
case U1 :
System.out.println("java基础");
break;
case U2 :
System.out.println("java进阶");
break;
case U3 :
System.out.println("javawb");
break;
default:
break;
}

}
public static void main(String[] args) {
Test test=new Test();
test.doWhat( Mj.U1);
}


}