class MyTest { final Runnable lambdaRunnable = () -> { System.out.println(o); }; final Object o; MyTest(Object o) { this.o = o; } }