for (Enumeration i = miscList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for (Mounted mounted : getMisc()) {
    public int heatSinks() {        int sinks = 0;        for (Enumeration i = miscList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            EquipmentType etype= mounted.getType();            if (etype.hasFlag(MiscType.F_HEAT_SINK)            || etype.hasFlag(MiscType.F_DOUBLE_HEAT_SINK)) {                sinks++;            }        }        return sinks;    }