Created
December 19, 2018 17:35
-
-
Save farhanpro/8920e10ca4af3824e245e718adabd093 to your computer and use it in GitHub Desktop.
Daily practice
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.company; | |
public class Main { | |
public static void main(String[] args) { | |
String keyword = "January"; | |
switch (keyword){ | |
case "January": case "Febuary": case "March": case "April": case "May": case " June": case "July": | |
case " August": case "September": case "October": case "November": case "December": | |
System.out.println("Keyword entered was : " + keyword); | |
break; | |
default: | |
System.out.println("Value was no A,B,C or D"); | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment