Skip to content

Instantly share code, notes, and snippets.

@codebleeder
Created May 28, 2014 18:45
Show Gist options
  • Select an option

  • Save codebleeder/4ef1bbb19aba4ee38d41 to your computer and use it in GitHub Desktop.

Select an option

Save codebleeder/4ef1bbb19aba4ee38d41 to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String[] args) {
int monthNumber = 3;
if (monthNumber>=1 && monthNumber<=3) {
System.out.println("first quarter");
}
else if(monthNumber>=4 && monthNumber<=6) {
System.out.println("second quarter");
}
else {
System.out.println("not in first half");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment