mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
10 lines
228 B
Java
10 lines
228 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);
|
|
stringConsumer.accept(s);
|
|
}
|
|
}
|
|
} |