Replace the lambda expression with a method reference

Report a typo

There is an instance of a lambda expression which takes a string and converts all characters to upper case:


Function<String, String> toUpperCase = s -> s.toUpperCase();

Change the lambda expression (right part) to a method reference which does the same.
Select one option from the list
___

Create a free account to access the full topic