void (String[] args) { /*Unnecessary 'final' on variable 's'*/final/**/ int s; if (args.length == 0) { s = 1; } else { s = 2; } new Runnable() { @Override public void run() { System.out.println(s); } }; System.out.println(s); }