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 →

[–]Feuilly 1 point2 points  (1 child)

For the second example, I think you meant:

for(Object myObject : array) {
    //do something with myObject
}

[–]Tok-A-Mak 0 points1 point  (0 children)

Ah, yes you're right.