Last active
December 3, 2018 06:53
-
-
Save kasundharmadasa/aa3518eba278c4d0b64d22a54a7d30fd 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
import java.util.function.Function; | |
public class Main { | |
public static void main(String[] args) { | |
Function<String, Integer> lambda = a -> a.length(); | |
System.out.println(lambda.apply("MyString")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment