mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-12 21:37:00 +07:00
10 lines
208 B
Java
10 lines
208 B
Java
import java.util.function.Supplier;
|
|
|
|
class Test {
|
|
void foo() {
|
|
if (true) {
|
|
Supplier<String> stringSupplier = () -> "Hello, world";
|
|
System.out.println(stringSupplier.get());
|
|
}
|
|
}
|
|
} |