aneliabogeva

Cinema Tickets

Nov 10th, 2020
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. import java.util.function.DoubleBinaryOperator;
  3.  
  4. public class BiggerNumber {
  5. public static void main(String[] args) {
  6. Scanner scanner = new Scanner(System.in);
  7. String day = scanner.nextLine();
  8.  
  9. switch (day){
  10. case "Monday":
  11. case "Tuesday":
  12. case "Friday":
  13. System.out.println(12);
  14. break;
  15. case "Wednesday":
  16. case "Thursday":
  17. System.out.println(14);
  18. break;
  19. case "Saturday":
  20. case "Sunday":
  21. System.out.println(16);
  22. break;
  23. default:
  24. System.out.println("closed");
  25. }
  26. }
  27. }
  28.  
RAW Paste Data