for (Enumeration i = weaponList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for(Mounted mounted : getWeaponList()) {
    public void loadAllWeapons() {        for (Enumeration i = weaponList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            WeaponType wtype = (WeaponType)mounted.getType();            if (wtype.getAmmoType() != AmmoType.T_NA) {                loadWeapon(mounted);            }        }    }