mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
12 lines
273 B
Java
12 lines
273 B
Java
import java.util.function.Supplier;
|
|
|
|
class Test {
|
|
void foo() {
|
|
Supplier<String> stringSupplier = new Supplier<String>() {
|
|
public String get() {
|
|
return "Hello, world";
|
|
}
|
|
};
|
|
System.out.println(stringSupplier.get());
|
|
}
|
|
} |