for (Enumeration e = getMisc(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m: getMisc()) {
    public int getBAPRange() {        for (Enumeration e = getMisc(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            EquipmentType type = m.getType();            if (type instanceof MiscType                    && type.hasFlag(MiscType.F_BAP)                    && !m.isDestroyed() && !m.isMissing()) {                //System.err.println("BAP type name: "+m.getName()+" internalName: "+((MiscType)m.getType()).internalName);                if ( m.getName().equals("Bloodhound Active Probe (THB)")                        || m.getName().equals("Bloodhound Active Probe"))                    return 8;                if ( ((MiscType)m.getType()).internalName.equals("CLActiveProbe")                         ||  ((MiscType)m.getType()).internalName.equals("WatchdogECMSuite") )                    return 5;                if ( ((MiscType)m.getType()).internalName.equals("CLLightActiveProbe") )                    return 3;                return 4;//everthing else should be range 4            }        }        return Entity.NONE;    }