Created
October 11, 2019 19:37
-
-
Save juliofalbo/c21e647f30d5bf57217c837d470d7a16 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
interface ConcatStringInterface { | |
String concat(String param1, String param2); | |
} | |
class ConcatStringImpl implements ConcatStringInterface { | |
public String concat(String param1, String param2) { | |
return param1 + param2; | |
} | |
} | |
public class LambdaExpressions { | |
public static void beforeJava8() { | |
ConcatStringInterface concatStringInterface = new ConcatStringImpl(); | |
concatStringInterface.concat("a", “b”); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment