Core concept
list.stream().map(String::toUpperCase).forEach(System.out::println);Advertisement
How it works
Only when parameters match. Otherwise use lambda.
Advertisement
Trade-offs + gotchas
Cleaner than explicit lambdas.
list.stream().map(String::toUpperCase).forEach(System.out::println);Only when parameters match. Otherwise use lambda.
Cleaner than explicit lambdas.