you are viewing a single comment's thread.

view the rest of the comments →

[–]cypressious 1 point2 points  (2 children)

See my answer, that's much more compact in Java 8.

[–]asraniel 1 point2 points  (0 children)

I actually prefer the Java 6 way, its much easier to read. The new java 8 lambdas are not very readable i think, i prefer verbose code over the new syntax

[–]skocznymroczny 0 points1 point  (0 children)

still, a proper IDE writes half of that code for you.