Skip to content

Instantly share code, notes, and snippets.

@farhanpro
Created December 19, 2018 17:35
Show Gist options
  • Save farhanpro/8920e10ca4af3824e245e718adabd093 to your computer and use it in GitHub Desktop.
Save farhanpro/8920e10ca4af3824e245e718adabd093 to your computer and use it in GitHub Desktop.
Daily practice
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