Skip to content
On this page

Lambda Expressions:

Lambda expressions allow you to create anonymous functions (function without a name) to implement functional interfaces.

java
// Lambda expressions
List<String> names = Arrays.asList("Alice", "Bob", "Charlie");

names.forEach(name -> System.out.println(name));