Created
October 9, 2018 17:59
-
-
Save DanishAmjad12/d5e00f2df09b19eb584cd8a8978322d9 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
private boolean checkEvenOrOdd(int n) { | |
if ((n % 2) == 0) { | |
// number is even | |
return true; | |
} else { | |
// number is odd | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment