I read that the enhanced for loop is more efficient than the normal for loop here:
http://developer.android.com/guide/practices/performance.html#fo
all answers are good,and I think no more answers are needed, but I just want to point out that:
The enhanced for statement can be used only to obtain array elements
it cannot be used to modify elements.
If your program needs to modify elements, use the traditional counter-controlled for statement.
take a look
int[] array = { 1, 2, 3, 4, 5 };
for (int counter = 0; counter < array.length; counter++)
array[counter] *= 2;
We could not use the enhanced for statement because we’re modifying the array’s elements.