mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
19 lines
312 B
Java
19 lines
312 B
Java
class Test {
|
|
@FunctionalInterface
|
|
interface I {
|
|
void f() throws Exception;
|
|
}
|
|
|
|
void bar() {
|
|
foo(new Runnable() {
|
|
public void run() {
|
|
System.out.println("");
|
|
System.out.println("");
|
|
}
|
|
});
|
|
}
|
|
|
|
void foo(Runnable anObject) {
|
|
anObject.run();
|
|
}
|
|
} |