Skip to content

Instantly share code, notes, and snippets.

@khatchad
Created April 20, 2015 18:58
Show Gist options
  • Save khatchad/1f53f7012bf19ec74485 to your computer and use it in GitHub Desktop.
Save khatchad/1f53f7012bf19ec74485 to your computer and use it in GitHub Desktop.
Returns true if the given number is even and false otherwise.
public static boolean isEven(int value) {
return value % 2 == 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment