Iterator iter = this.transports.iterator(); while ( iter.hasNext() ) { Transporter next = (Transporter)iter.next();
Enumeration iter = this.transports.elements(); while ( iter.hasMoreElements() ) { Transporter next = (Transporter)iter.nextElement();
    public void load( Entity unit ) throws IllegalArgumentException {	// Walk through this entity's transport components;	// find the one that can load the unit.	// Stop looking after the first match.	Iterator iter = this.transports.iterator();	while ( iter.hasNext() ) {	    Transporter next = (Transporter)iter.next();	    if ( next.canLoad( unit ) ) {		next.load( unit );		return;	    }	}	// If we got to this point, then we can't load the unit.	throw new IllegalArgumentException( this.getShortName() +					    " can not load " + 					    unit.getShortName() );    }