fork(2) download
  1.  
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class SwitchDate{
  8. public static void main(String[]args){
  9. int day =3;
  10. switch(day){
  11. case 1:System.out.println("monday");
  12. break;
  13. case 2:System.out.println("tuesday");
  14. break;
  15. case 3:System.out.println("wednesday");
  16. break;
  17. case 4:System.out.println("thursday");
  18. break;
  19. case 5:System.out.println("friday");
  20. break;
  21. case 6:System.out.println("saturday");
  22. break;
  23. case 7:System.out.println("sunday");
  24. break;
  25. default:System.out.println("Invalid day");
  26.  
  27. }
  28. }
  29. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
wednesday