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).