mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
21 lines
358 B
Plaintext
21 lines
358 B
Plaintext
public class Foo {
|
|
|
|
public static void bar(final Runnable runnable) {
|
|
runnable.run();
|
|
}
|
|
}
|
|
|
|
class Bar {
|
|
public static void main(String[] args) {
|
|
Foo.bar(new Runnable() {
|
|
@Override
|
|
public void run() {
|
|
doRun();
|
|
}
|
|
|
|
private void doRun() {
|
|
// Woo-hoo
|
|
}
|
|
});
|
|
}
|
|
} |