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.