mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-20 11:50:49 +07:00
16 lines
235 B
Java
16 lines
235 B
Java
import java.util.function.Supplier;
|
|
class Test {
|
|
|
|
private void a()
|
|
{
|
|
b(newMethod());
|
|
}
|
|
|
|
private Supplier newMethod() {
|
|
return (s) -> {
|
|
System.out.println(s);
|
|
};
|
|
}
|
|
|
|
void b(Supplier s) {}
|
|
} |