Friday, 19 February 2016

Objects serialization and deserialization in java with java I/O API and Swing example to make flash card maker and displayer

Objects serialization and deserialization, Java I/O API and Swing


In the program below we show how to serialize objects and save them as text file to disk. Then we get the file and load it back in to memory using java I/O API and deserialize the objects. 

We use Swing to make the GUI portion of the program to make a flash card maker and displayer. The user can make flash cards with questions and answers on flash cards and save a deck of flash cards as a text file to the hard disk by serializing the FlashCard object. Then the user can load a text file previously saved to the disk and deserialize it back in to FlashCard objects in order to use the flash cards.

To see the code please click here.

No comments:

Post a Comment