All lessons

Power Tools: Lambdas & Streams

10 min · Java

Write inline functions with lambdas and transform lists with the Streams API.

Java · Power Tools: Lambdas & Streams0/5 cleared

Enemy 1 of 5

A lambda is a compact, unnamed function: parameters -> expression. Assign it to a functional interface like Function<Integer, Integer>, then call .apply() to run it.

You
Syntax Skeleton

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 36