for ( Iterator aIter = myCollection.iterator(); aIter.hasNext(); ) { Thing item = (Thing) aIter.next(); // do something with item }