public class Foo { public static int main(String[] args) { Object o1 = new Runnable() { public void run() { // TODO1: not implemented } }; int r = 0; Object o2 = new Runnable() { public void run() { // TODO2: not implemented } }; return r; } }