WeaponType wtype = (WeaponType)mounted.getType(); for (Enumeration i = getAmmo(); i.hasMoreElements();) { Mounted mountedAmmo = (Mounted)i.nextElement();
for(Mounted mountedAmmo : getAmmo()) {
    public void loadWeapon(Mounted mounted) {        WeaponType wtype = (WeaponType)mounted.getType();        for (Enumeration i = getAmmo(); i.hasMoreElements();) {            Mounted mountedAmmo = (Mounted)i.nextElement();            if (loadWeapon(mounted, mountedAmmo))                break;        }    }