for (Enumeration i = miscList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for (Mounted mounted: getMisc()) {
    public boolean locationHasCase(int loc) {        for (Enumeration i = miscList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.getLocation() == loc            && mounted.getType().hasFlag(MiscType.F_CASE)            && !mounted.isDestroyed()) {                return true;            }        }        return false;    }