Home | History | Annotate | Download | only in resources
      1 class SwitchOnEnum {
      2 
      3     enum MyEnum {
      4         E1, E2, E3
      5     }
      6 
      7 	public void foo() {
      8 	    MyEnum e;
      9 		switch (e){
     10 		    case E1:
     11 		        break;
     12 		}
     13 	}
     14 
     15 }