3 ms·
You can. You just need to know what type of function it is first. Runnable r = () -> doSomething(); Supplier<String> a = () -> “hello world”;
by vips7L 3y ago
You can. You just need to know what type of function it is first.
Runnable r = () -> doSomething();
Supplier<String> a = () -> “hello world”;