Java 12

Definitive Guide To Java 12

A detailed guide to Java 12: migration, version requirements, new features (switch expressions, teeing collectors, indenting/transforming Strings, and more), and JVM changes (default CDS, Shenandoah, G1).

Teeing Collector in Java 12

The teeing collector, available since Java 12 as Collectors::teeing, forwards its input to two other collectors before merging their results with a function.