Skip to content

Instantly share code, notes, and snippets.

@kasundharmadasa
Last active December 3, 2018 06:46
Show Gist options
  • Save kasundharmadasa/8f7e86ef7f0a52a7f497b146891bbbc0 to your computer and use it in GitHub Desktop.
Save kasundharmadasa/8f7e86ef7f0a52a7f497b146891bbbc0 to your computer and use it in GitHub Desktop.
import com.lambdaSample.SampleFunctionalInterface;
public class Main {
public static void main(String[] args) {
SampleFunctionalInterface lambda = s1 -> System.out.println("Hi " + s1);
lambda.foo("Alice"); //Output : "Hi Alice"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment