Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1.  
  2. /**
  3. * Write a description of class StringsSelection here.
  4. *
  5. * @author (your name)
  6. * @version (a version number or a date)
  7. */
  8. import java.util.Scanner;
  9. public class StringsSelection
  10. {
  11. public static void main(String[] args){
  12.  
  13. {System.out.println("COMP 1409 - Exercise 2-b");}
  14.  
  15.  
  16. Scanner reader = new Scanner(System.in);
  17.  
  18. String input = reader.nextLine();
  19.  
  20. if (input.equalsIgnoreCase("Sunday"))
  21. {
  22. System.out.println("Sunday is the last day of the weekend, but the first day of the week.");
  23. }
  24.  
  25. else if(input.equalsIgnoreCase("Monday"))
  26. {
  27. System.out.println("It's just another workday. Will the horror ever end?");
  28. }
  29.  
  30. else if(input.equalsIgnoreCase("Tuesday"))
  31. {
  32. System.out.println("It's just another workday. Will the horror ever end?");
  33. }
  34.  
  35. else if(input.equalsIgnoreCase("Wednesday"))
  36. {
  37. System.out.println("I survived to the middle of the week.");
  38. }
  39.  
  40. else if(input.equalsIgnoreCase("Thursday"))
  41. {
  42. System.out.println("It's just another workday. Will the horror ever end?");
  43. }
  44.  
  45. else if(input.equalsIgnoreCase("Friday"))
  46. {
  47. System.out.println("It's still a workday, but I've already checked out for the weekend.");
  48. }
  49.  
  50. else if(input.equalsIgnoreCase("Saturday"))
  51. {
  52. System.out.println("WEEEE HEEEE! The weekend is here");
  53. }
  54.  
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement