Last active
December 14, 2015 08:29
-
-
Save dlhartveld/5058170 to your computer and use it in GitHub Desktop.
Example of interface implementation as anonymous inner class instatiation in Java 7.
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
java.util.function.BiFunction<String, String, String> concat | |
= new java.util.function.BiFunction<String, String, String>() { | |
@Override | |
public String apply(String t, String u) { | |
return t + u; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment