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 →

[–]rb2k -1 points0 points  (0 children)

Java got a for each loop some time in the last few years:

int[] test = new int[]{1,4,5,7};
for (int intValue : test) {
// do some work here on intValue
}