November 2005
Intermediate to advanced
304 pages
6h 14m
English
In some programming languages, it's very easy to iterate through a list or an array, automatically repeating through a loop "for each" item in the list and assigning the item to a local variable. I once started to tell a colleague how I thought the for loop in Java was broken, because it didn't have a for-each. What actually came out of my mouth was "There is no for in Java." My friend was also an experienced Java developer, and he responded with "Are you crazy? Of course there's a for in Java!" For a long time after that he continued to tease me, periodically reminding me that ...
Read now
Unlock full access