Skip to content

athenian-programming/java-lambdas

Repository files navigation

Java Lambdas

This repo contains code snippets useful for understanding Java lambdas.

Setup

Tutorials

Examples:

Java Lambda Example

Arrays.asList("a1", "a2", "b1", "c2", "c1")
    .stream()
    .filter(s -> s.startsWith("c"))
    .map(String::toUpperCase)
    .sorted()
    .forEach(System.out::println);