void () { int a; for(int i = 0; i < 2; i++) { a = i; Runnable r = () -> System.out.println(<error descr="Variable used in lambda expression should be final or effectively final">a</error>); r.run(); } }