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