well!! i hope the below shown explanation can clear your doubt.....please read it till the end...and read text which is made bold .its the explanation of enhanced for loop........ [ July 27, 2007: Message edited by: dhwani mathur ]
it is the value from the array. This form of "for loop" starts by retrieving arr and putting THAT INT into i, then falling into your loop code. When the bottom of that block is reached it arr is retrieved and put into i, then on the next pass arr, and on the last pass arr. But the important thing to grab is that there is no way to stuff anything back in the array at the current index ( I refer you to the earlier posted response). This style of "for" loop exists ONLY to facilitate stepping through an array and handing you a copy of each and every element in the array. Nothing more.
SCJP - 86% - June 11, 2009