for ( Enumeration equips = getMisc(); equips.hasMoreElements(); ) { Mounted mEquip = (Mounted) equips.nextElement();
for (Mounted mEquip : getMisc()) {
    public boolean isStealthActive() {        // Try to find a Mek Stealth system.        for ( Enumeration equips = getMisc(); equips.hasMoreElements(); ) {            Mounted mEquip = (Mounted) equips.nextElement();            MiscType mtype = (MiscType) mEquip.getType();            if ( Mech.STEALTH.equals(mtype.getInternalName()) ) {                if (mEquip.curMode().equals( "On" ) && hasActiveECM()) {                    // Return true if the mode is "On" and ECM is working                    return true;                }            }            else if (Mech.NULLSIG.equals(mtype.getInternalName())                    && mEquip.curMode().equals( "On" )                    && mEquip.isReady()) {                return true;            }        }        // No Mek Stealth or system inactive.  Return false.        return false;    }