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. System.out.println("What is on the schedule for today?");
  13.  
  14. System.out.println("1. Sunday");
  15.  
  16. System.out.println("2. Monday");
  17.  
  18. System.out.println("3. Tuesday");
  19.  
  20. System.out.println("4. Wednesday");
  21.  
  22. System.out.println("5. Thursday");
  23.  
  24. System.out.println("6. Friday");
  25.  
  26. System.out.println("7. Saturday");
  27.  
  28. Scanner in = new Scanner(System.in);
  29. int choice = in.nextInt();
  30. switch(choice)
  31.  
  32. {
  33. case 1:
  34. System.out.println("\nSunday - Church, Softball, & Roblox ");
  35. break;
  36.  
  37. case 2:
  38. System.out.println("\nMonday - Homework, Fortnite, Drink Srite");
  39. break;
  40.  
  41. case 3:
  42. System.out.println("\nTuesday - Drink Sprite, Roblox, Sleep");
  43. break;
  44.  
  45. case 4:
  46. System.out.println("\nWednesday - Homework, Club, & Eat");
  47. break;
  48.  
  49. case 5:
  50. System.out.println( "\nThursday - Gym, Watch Tiktok, Homework");
  51. break;
  52.  
  53. case 6:
  54. System.out.println( "\nFriday - Go out to eat, Sprite, Roblox");
  55. break;
  56.  
  57. case 7:
  58. System.out.println( "\nSaturday - Hang out with friends, Softball practice, Nap");
  59. break;
  60.  
  61. default:
  62. System.out.println("Free day!");
  63.  
  64. }
  65.  
  66. System.out.println("\n Make sure to complete these tasks!");
  67.  
  68.  
  69. }
  70. }
Success #stdin #stdout 0.13s 56548KB
stdin
5
stdout
What is on the schedule for today?
1. Sunday
2. Monday
3. Tuesday
4. Wednesday
5. Thursday
6. Friday
7. Saturday

Thursday - Gym, Watch Tiktok, Homework

 Make sure to complete these tasks!