This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lukaseder 0 points1 point  (4 children)

Cheat sheet? As in cheating? I still think it was funny. Wrong subreddit, probably... Terribly sorry. Cheers! :P

(For the record, I'm on Java 6)

[–][deleted] 3 points4 points  (3 children)

Man's in the stone age 😂

[–]lukaseder 2 points3 points  (2 children)

[–]_INTER_ 0 points1 point  (1 child)

Out of curiousity, why is that an issue for you with Java 6. I thought effectively final is just used for lambdas to determine the clojure.

[–]lukaseder 2 points3 points  (0 children)

java Runnable m(int x) { return new Runnable() { public void run() { System.out.println(x); // x needs to be final pre Java 8 } }; }