Skip to content

Instantly share code, notes, and snippets.

@rajeshg
Created December 12, 2010 00:04
Show Gist options
  • Save rajeshg/737730 to your computer and use it in GitHub Desktop.
Save rajeshg/737730 to your computer and use it in GitHub Desktop.
isOdd
public boolean isOdd(int i) { return (i & 1) != 0; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment