mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
16 lines
388 B
Java
16 lines
388 B
Java
import java.util.function.Consumer;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
Consumer<String> ref = Test::method;
|
|
System.out.println(ref);
|
|
}
|
|
|
|
static void method(String arg, Object... args) {
|
|
System.out.println(arg);
|
|
System.out.println(args);
|
|
}
|
|
static void method(Object... args) {
|
|
System.out.println(args);
|
|
}
|
|
} |