Created
August 6, 2015 22:21
-
-
Save Maslor/77e920ea06733a953dbe to your computer and use it in GitHub Desktop.
returns true if inserted number is even, false otherwise
This file contains 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 Number { | |
public boolean isEven(double n) { | |
if (n % 2 == 0) return true; | |
else return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment