Skip to content

Instantly share code, notes, and snippets.

@juliofalbo
Created October 11, 2019 19:37
Show Gist options
  • Save juliofalbo/c21e647f30d5bf57217c837d470d7a16 to your computer and use it in GitHub Desktop.
Save juliofalbo/c21e647f30d5bf57217c837d470d7a16 to your computer and use it in GitHub Desktop.
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