mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-21 06:27:54 +07:00
18 lines
272 B
Java
18 lines
272 B
Java
class Test {
|
|
void bar() {
|
|
foo(1, new Runnable() {
|
|
public void run() {
|
|
System.out.println(1);
|
|
System.out.println(1);
|
|
}
|
|
});
|
|
}
|
|
|
|
void foo(int i, Runnable anObject) {
|
|
if (i > 0) {
|
|
|
|
anObject.run();
|
|
|
|
}
|
|
}
|
|
} |