There's nothing weird here. Again, your Inventory class still has static fields, and each time you create a new Inventory object and fill those fields, you are in effect overwriting the old info. Again, there is no place for statics here as it is most definitely causing your error. As I mentioned in your previous similar thread, get rid of the static modifier here. Don't use it unless you know definitely that you should use it (and here you should not).
Joined: Jun 29, 2009
I see, I guess that lesson on statics wasent over.
That is very cool how that works.
I cant say enough good things about this forum. Thanks a lot.
For reference the following code contained static variables which as Pete said, were overwritten.