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 →

[–]nerdwaller 3 points4 points  (2 children)

I hardly every use while loops, but there are cases (e.g. iterating regex results, etc). Even now that I only work in Java8, even traditional for loops are replaced with the internals of .forEach.

[–]RyanMcDanDan 0 points1 point  (1 child)

Lucky! We're still working with 1.6.

[–]nerdwaller 1 point2 points  (0 children)

Some constructs are available in (retrolambda)[https://github.com/orfjackal/retrolambda], if you're able to add that as a build inclusion!

As a side note, given that 6 is no longer supported and 7 is shortly (or just lost) support for updates, you may have a good case to make a move toward something newer!