method reference
Shorthand like String::toUpperCase for a lambda that only calls one method.
Class::staticMethod passes the lambda's parameters as arguments; Class::instanceMethod calls the method on the first parameter.
Examples
String::lengthis the same ass -> s.length().
See also