News

Method references: A primer. My previous Java 101 tutorial introduced lambda expressions, which are used to define anonymous methods that can then be treated as instances of a functional interface.
Simple method delegation: Use method references for straightforward delegations that don’t require modifying or processing arguments.For example, list.forEach(System.out::println) is clearer ...