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