mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-20 11:50:49 +07:00
11 lines
248 B
Java
11 lines
248 B
Java
import java.util.function.Consumer;
|
|
|
|
class Test {
|
|
String myName;
|
|
void foo() {
|
|
if (true) {
|
|
Consumer<String> stringConsumer = myName -> System.out.println("Hello, world " + myName);
|
|
stringConsumer.accept(myName);
|
|
}
|
|
}
|
|
} |