for (Enumeration e = getMisc(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m: getMisc()) {
    public boolean hasActiveECCM() {        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.curMode().equals("ECCM")) {                return !(m.isDestroyed() || m.isMissing() || m.isBreached() || isShutDown());            }        }        return false;    }