Lambda

In Java Lambdas are defined as below:

(parameters) -> expression;

Brackets for parameters are optional if there is only one parameter and its type is inferred.

List<String> list = Arrays.asList("a", "b", "c");
list.forEach(item -> System.out.println(item));

Backlinks