Hey guys, I am using an arraylist for my rpg to store an inventory and one to store the persons name, place of origin, etc.. Anyway, I need to know of a way to be able to use those same array lists with the values stored in them in all of my classes, as I have one class where I am using the array to enter their name etc.. and another one where they are playing the game.
The problem is that when I try to use the arraylist it gives me back null pointer exception or out of bounds etc.., meaning that there is nothing in the arraylist but I know for sure there is. Also if you do not mind, do you know how if there is a way after you load the arraylist if you are able to use that loaded array list? I know how to load, I just do not know how to use it afterwards.