fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. System.out.println("What is on your schedule for today? Choose the day of the week and enter its number to find out!");
  14. System.out.println("1. Sunday");
  15. System.out.println("2. Monday");
  16. System.out.println("3. Tuesday");
  17. System.out.println("4. Wednesday");
  18. System.out.println("5. Thursday");
  19. System.out.println("6. Friday");
  20. System.out.println("7. Saturday");
  21.  
  22. Scanner in = new Scanner(System.in);
  23. int choice = in.nextInt();
  24. switch(choice)
  25. {
  26. case 1:
  27. System.out.println("\nSunday: Church, dance practice, & the volleyball game.");
  28. break;
  29.  
  30. case 2:
  31. System.out.println("\nMonday: The club meeting, finishing reading, & going out to eat.");
  32. break;
  33.  
  34. case 3:
  35. System.out.println("\nTuesday: The team presentation, the club meeting, & volleyball practice.");
  36. break;
  37. case 4:
  38. System.out.println("\nWednesday: The club meeting & doing homework.");
  39. break;
  40.  
  41. case 5:
  42. System.out.println( "\nThursday: The doctor's appointment, studying, & volleyball practice.");
  43. break;
  44.  
  45. case 6:
  46. System.out.println( "\nFriday: Napping, doing homework, & baking.");
  47. break;
  48.  
  49. case 7:
  50. System.out.println( "\nSaturday: Change sheets, go shopping, & doing homework.");
  51. break;
  52.  
  53. default:
  54. System.out.println("Please input a number to choose a day of the week.");
  55. }
  56. }
  57. }
Success #stdin #stdout 0.14s 54492KB
stdin
2
stdout
What is on your schedule for today? Choose the day of the week and enter its 		number to find out!
1. Sunday
2. Monday
3. Tuesday
4. Wednesday
5. Thursday
6. Friday
7. Saturday

Monday: The club meeting, finishing reading, & going out to eat.