mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 18:50:54 +07:00
16 lines
237 B
Java
16 lines
237 B
Java
class Test {
|
|
void bar() {
|
|
foo(new Runnable() {
|
|
public void run() {
|
|
System.out.println(1);
|
|
System.out.println(1);
|
|
}
|
|
});
|
|
}
|
|
|
|
void foo(Runnable anObject) {
|
|
|
|
anObject.run();
|
|
|
|
}
|
|
} |