for (Enumeration e = getMisc(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m: getMisc()) {
    public int getECMRange() {        for (Enumeration e = getMisc(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            EquipmentType type = m.getType();            if ( type instanceof MiscType && type.hasFlag(MiscType.F_ECM) &&                 !m.isDestroyed() && !m.isMissing() ) {                if ( BattleArmor.SINGLE_HEX_ECM                     .equals(type.getInternalName()) ) {                    return 0;                } else {                    return 6;                }            }        }        return Entity.NONE;    }