Skip to content

Instantly share code, notes, and snippets.

@Maslor
Created August 6, 2015 22:21
Show Gist options
  • Save Maslor/77e920ea06733a953dbe to your computer and use it in GitHub Desktop.
Save Maslor/77e920ea06733a953dbe to your computer and use it in GitHub Desktop.
returns true if inserted number is even, false otherwise
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