I have this code:
List r = new ArrayList<>(); for(int i = 0; i < 10; i++) { r.add(new Runnable() { @Ove
This is what IntelliJ does for you as a fix. The only difference is I would do
ExecutorService es = for(int i = 0; i < 10; i++) { final int i_final = i; es.execute(new Runnable() {