Created
May 28, 2014 18:45
-
-
Save codebleeder/4ef1bbb19aba4ee38d41 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
| 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