for (Enumeration i = en.getEquipment(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for (Mounted mounted : en.getEquipment()) {
    private void destroyLocation( Entity en, int loc) {        // mark armor, internal as destroyed        en.setArmor(IArmorState.ARMOR_DESTROYED, loc, false);        en.setInternal(IArmorState.ARMOR_DESTROYED, loc);        if (en.hasRearArmor(loc)) {            en.setArmor(IArmorState.ARMOR_DESTROYED, loc, true);        }        // equipment marked missing        for (Enumeration i = en.getEquipment(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.getLocation() == loc) {                mounted.setDestroyed(true);            }        }        // all critical slots set as missing        for (int i = 0; i < en.getNumberOfCriticals(loc); i++) {            final CriticalSlot cs = en.getCritical(loc, i);            if (cs != null) {                cs.setDestroyed(true);            }        }        // Mark dependent locations as destroyed.        if (en.getDependentLocation(loc) != Mech.LOC_NONE) {            destroyLocation(en, en.getDependentLocation(loc));        }    }