Tim Morris wrote:I hope I've made the problem clear enough,
the pointers in the Room class's Array
Anayonkar Shivalkar wrote:Hi Tim Morris,
I'm not in touch with serialization recently, but this is what I guess:
When you serialize the ArrayList of rooms, it actually dumps the ArrayList to file. However, the ArrayList contains references to objects (and not actual objects). So, when you deserialize it, what you get is a list containing references to Room objects.
Correct me if I'm wrong.
Tim Morris wrote:Cheers Anayonkar!
It works now, but there's another problem...I have no idea WHY it's working.
The Room Array still remains un-filled after deserialization
but, for some reason, it's still working when I give in the correct commands. It shouldn't be working with an empty array, yet it is.