robert engels wrote:
The 'foreach' should be faster in the general case for arrays as the bounds checking can be avoided.
Why is that? Where do you mean that the bounds-checking can be avoided?
But, I doubt the speed difference is going to matter much either way, and eventually the JVM impl will converge to near equal performance.
This I actually agree on: if the foreach has some disadvantage of explicit indexing through an array, it will at some point be fixed so that it doesn't have this disadvantage anymore..
Endre. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]