Created
June 11, 2019 17:49
-
-
Save recursivecodes/e8bc73c05075625eb7dc5d114574749e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.fn; | |
| public class HelloFunction { | |
| public String handleRequest(String input) { | |
| var result = | |
| switch (input.toUpperCase()) | |
| { | |
| case "MONDAY", "TUESDAY" -> "Get back to work! "; | |
| case "WEDNESDAY" -> "Wait for the end of week. "; | |
| case "THURSDAY" -> "Almost there... wait till tomorrow... "; | |
| case "FRIDAY" -> "Prepare plan for the weekend! "; | |
| case "SATURDAY", "SUNDAY" -> "Enjoy the weekend! "; | |
| default -> "Please tell me which day... "; | |
| }; | |
| return result; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment