for ( Enumeration equips = getMisc(); equips.hasMoreElements(); ) { Mounted mEquip = (Mounted) equips.nextElement();
for (Mounted mEquip : getMisc()) {
    public boolean hasStealth() {        for ( Enumeration equips = getMisc(); equips.hasMoreElements(); ) {            Mounted mEquip = (Mounted) equips.nextElement();            MiscType mtype = (MiscType) mEquip.getType();            if ( mtype.hasFlag(MiscType.F_STEALTH) ) {                // The Mek has Stealth Armor or null signature system.                return true;            }        }        return false;    }