fork(1) download
  1. class Test
  2. {
  3. enum TestEnum
  4. {
  5. ONE , TWO , THREE ;
  6. }
  7.  
  8. public static void main ( String [ ] args )
  9. {
  10. TestEnum te = TestEnum . ONE ;
  11. switch ( te )
  12. {
  13. case ONE :
  14. System . out . println ( 1 ) ;
  15. break ;
  16. case TWO :
  17. System . out . println ( 2 ) ;
  18. break ;
  19. }
  20. }
  21. }
Success #stdin #stdout 0.06s 215552KB
stdin
Standard input is empty
stdout
1