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