-
Notifications
You must be signed in to change notification settings - Fork 0
Persistance
Eivind Strand Harboe edited this page Apr 29, 2021
·
1 revision
To save the state of the system we use java.io and serialized objects. This allows us to save the content of an object, in our case HashMaps and ArrayLists, to a serialized file. We use FileInputStreams to load the objects from file and FileOutputStreams to save them to a file.
All of this allows us to easily save and load the entire state of the program at will.