Enhanced for loop -- multiple iterators?
843793Aug 6 2004 — edited Aug 9 2004Does anyone know if the enhanced for loop syntax supports anything beyond the simple:
"for(Type var : Collection)" ? I know arrays are supported too. Anything else?
Any way to do fancier stuff like we can do with the multiple variables in the old for loop?
for (int i = 0, j; i < a.size(), i++, j = i * 2)