Skip to content

Instantly share code, notes, and snippets.

@Enerccio
Created December 6, 2017 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Enerccio/7bc72c809a3e35b677f8aa1bd6d44289 to your computer and use it in GitHub Desktop.
Save Enerccio/7bc72c809a3e35b677f8aa1bd6d44289 to your computer and use it in GitHub Desktop.
int x = 0;
if (a == 1)
x = 1;
else
x = 2;
Predicate<Object> pred = (o) -> return (x % 2) == 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment