Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Created December 17, 2015 02:23
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 codeaholicguy/1147e19efe2bca0b7dd4 to your computer and use it in GitHub Desktop.
Save codeaholicguy/1147e19efe2bca0b7dd4 to your computer and use it in GitHub Desktop.
public interface Comparator {
public boolean compare(int number1, int number2);
}
Comparator comparator = (number1, number2) -> number1 > number2;
boolean result = comparator.compare(1, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment