Created
December 17, 2015 02:23
-
-
Save codeaholicguy/1147e19efe2bca0b7dd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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