I've created a little program with BlueJ that works as a digital registry (registry as in 'a sorted list'). The program has only two classes: one working as a template for the entries in the registry which in return is represented by an ArrayList in the second class, the one managing all entries. E.g. the user can create a new entry via the console and later search for the right entry and read the details over the console, thus this entries are instances of the first class "Entry".
Now I've exported the .jar and I do can use all features as in the console-simulation but since the instances aren't saved actually but rather for only one session this program has no useful functionality. I somehow need to save those created instanced in order to have them already in the ArrayList everytime I run the program. I'm searching for something that does like the "save world" functionality does in Greenfoot.
I've read that you can save objects with the help of the testclass in BlueJ: Saving Objects with the testclass. But the problem is that I can't actually "see" those entries since they are stored in the ArrayList and that I later want to run the program completely independent (i.e. without BlueJ but the .jar).
Does anybody know how I can save those instances and use them later on when I quit and run the program again?