for (Enumeration i = weaponList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for (Mounted mounted : getWeaponList()) {
    public int getFirstWeapon() {        for (Enumeration i = weaponList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.isReady()) {                return getEquipmentNum(mounted);            }        }        return -1;    }