This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi there. I read in MZ Tiger Study guide the following:
"Restrictions on the enhanced for loop: - CANNOT be used to modify the current slot in a collect or an array. It is not usable for loops where you need to replace elements in a list or array as you traverse it".
However, i managed to compile an run this successfully: