This repo contains code snippets useful for understanding Java lambdas.
- Install Java 11
- How to start working with Lambda Expressions in Java
- Java Lambda Tips and Best Practices
- Java 8 Stream Tutorial
- Fluent Calls
- Subclasses 1
- Subclasses 2
- Interfaces 1
- Interfaces 1
- Lambdas
- Predicates
- Functions
- Streams
Arrays.asList("a1", "a2", "b1", "c2", "c1")
.stream()
.filter(s -> s.startsWith("c"))
.map(String::toUpperCase)
.sorted()
.forEach(System.out::println);