mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-18 07:15:51 +07:00
14 lines
307 B
Java
14 lines
307 B
Java
import java.util.function.Supplier;
|
|
|
|
class Test {
|
|
void foo() {
|
|
if (true) {
|
|
Supplier<String> stringSupplier = new Supplier<String>() {
|
|
public String get() {
|
|
return "Hello, world";
|
|
}
|
|
};
|
|
System.out.println(stringSupplier.get());
|
|
}
|
|
}
|
|
} |