for (Enumeration i = equipmentList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for (Mounted mounted : equipmentList) {
    public void restore() {        // restore all mounted equipments        for (Enumeration i = equipmentList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            mounted.restore();        }    }