[SOLVED] Saving Several arraylists into one file?
Hi again! :)
I'm looking to save several arrayLists, and then being able to load them again. Currently I used a save function which saves the arraylists in seperate files, which is "user chosen name"+arrayListName. However I am unable to find a way to conveniently load these for the user, as he'd have to load each one separately.
Thus I am looking for a way to either load these in a simple way, or beeing able to write several arrayLists into a single file, so the user only will need to choose one file. Or a way to load several files while the user will only need to choose one?
I've tried googling for different variants of "several arraylists java" or looking through sites with how to use ArrayLists, but so far it seems as if it impossible.
Is this even possible? And if so, any pointers to how? :)
Like, can I make an ArrayList containing array lists, and then load the 4 different arraylists from there?
Any tips are welcome!