June 2018
Beginner
722 pages
18h 47m
English
Use the method reference to express creating a new object. Let's assume that we have class A{}. Replace the following Supplier function declaration with another one that uses the method reference:
Supplier<A> supplier = () -> new A();
Read now
Unlock full access