Lambda expressions in Java

Lambda expressions in java is a way to implement functional interfaces. Functional interface is the one which only has single unimplemented method. This gives us freedom from creating a class or anonymous class. In addition Lambdas can be used with streams. Here is an example. Download the code here import java.util.ArrayList; import java.util.List; import java.util.stream.Stream; … Continue reading Lambda expressions in Java