for(Object o : iterator)
May 12th, 2003 by HenDoes anyone know if this will work in JDK 1.5?
for(Object o : iterator)
or is it only for Collections?
Does anyone know if this will work in JDK 1.5?
for(Object o : iterator)
or is it only for Collections?
May 12th, 2003 at 6:37 am
It will work for any “Collection” object that has an iterator() function, PLUS all arrays, i.e. not Array objects, but [] objects.