for (Enumeration i = getEquipment(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for (Mounted mounted : getEquipment()){
    public void applyDamage() {        // mark all damaged equipment destroyed and empty        for (Enumeration i = getEquipment(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.isHit() || mounted.isMissing()) {                mounted.setShotsLeft(0);                mounted.setDestroyed(true);            }        }        // destroy criticals that were hit last phase        for (int i = 0; i < locations(); i++) {            for (int j = 0; j < getNumberOfCriticals(i); j++) {                final CriticalSlot cs = getCritical(i, j);                if (cs != null) {                    cs.setDestroyed(cs.isDamaged());                }            }        }        // destroy armor/internals if the section was removed        for (int i = 0; i < locations(); i++) {            if (getInternal(i) == IArmorState.ARMOR_DOOMED) {                setArmor(IArmorState.ARMOR_DESTROYED, i);                setArmor(IArmorState.ARMOR_DESTROYED, i, true);                setInternal(IArmorState.ARMOR_DESTROYED, i);            }        }    }