Create a program that stores an array of objects (your choice) and then uses serialization to store that array of objects to a file. The objects in the array must contain at least one reference to another object. You will have to do a "deep copy" which means that all objects referenced must be "serializable"
Make a Array of the Family Members class and populate each element of that array with some entries.
Now that you have the Array of Family members (each refering to another set of objects, name, address, phone etc.) you have to only serialize this array (Array is also an Object).
Write this serialized object to a file.
If you need further help feel free to contact me.
Hope that helps!!
I have modified your code a little. I could not test the code as i do not have a jdk1.5
Please see the comments on the code. Modify the Method that reads the FAmily Members and the code should work fine.
Hope that helps. Do reply in case you find issues or anyways
Doing someones homework for them doesn't really help them at all.
is there a way without giving me the code, just giving me an explanation of how to put this data into an array that I can then serialize the array instead of just the member data.
[ March 11, 2006: Message edited by: Garrett Rowe ]