for(Enumeration equip = getEquipment();equip.hasMoreElements();) { Mounted m = (Mounted)equip.nextElement();
for (Mounted m : getEquipment()){
    public void addClanCase() {        boolean explosiveFound=false;        EquipmentType clCase = EquipmentType.get("CLCASE");        for (int i = 0; i < locations(); i++) {            explosiveFound=false;            for(Enumeration equip = getEquipment();equip.hasMoreElements();) {                Mounted m = (Mounted)equip.nextElement();                if(m.getType().isExplosive() && m.getLocation()==i) {                    explosiveFound=true;                }            }            if(explosiveFound) {                try {                    addEquipment(new Mounted(this, clCase), i, false);                    } catch (LocationFullException ex) {                        // um, that's impossible.                        }                    }         }                        }