java.util.function
Predicate<String> isEmpty = String::isEmpty;Function<String, Integer> length = String::length;Consumer<String> print = System.out::println;Supplier<Integer> randomNumber = () -> (int) (Math.random() * 10);BiFunction<Integer, Integer, Integer> area = (width, height) -> width * height;UnaryOperator<Integer> increment = x -> x + 1;BinaryOperator<Integer> add = (x, y) -> x + y;Comparator<String> comparator = Comparator.comparing(String::length);Runnable runnable = () -> System.out.println("Hello, world!");