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. Is this clear?
That looks like working code. Why do you need to put something (I couldn't understand what) into an array? Does your assignment say to put something into an array, or is that your idea of a workaround for some problem you are having?
This is what the program is supposed to do. He wants there to be user input so I though this would be the easy way, maybe I am wrong. Would an array of strings work better to store data to?
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"
Oh i think the question is quite straightforward. 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!!
Hi Joe, 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
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.
Doing someones homework for them doesn't really help them at all. [ March 11, 2006: Message edited by: Garrett Rowe ]
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter