C
Colin Hemmings
Hi there,
I am having a problem with serialization.
I have an ArrayList called 'stocks' which contains 'stock' objects each
stock contains a 'price history' class.
I run serialization on the ArrayList by writing the stocks arraylist to
a file when the list is changed and reading the arraylist backing each
time the main class is run.
The serialization works fine for storing the details of a stock (like,
stockName, currentPrice etc) but its isnt storing the price history
object that each stock contains.
Why is this? I assumed serialization would store the entire contents of
each stock?
I am having a problem with serialization.
I have an ArrayList called 'stocks' which contains 'stock' objects each
stock contains a 'price history' class.
I run serialization on the ArrayList by writing the stocks arraylist to
a file when the list is changed and reading the arraylist backing each
time the main class is run.
The serialization works fine for storing the details of a stock (like,
stockName, currentPrice etc) but its isnt storing the price history
object that each stock contains.
Why is this? I assumed serialization would store the entire contents of
each stock?