My first question is that should I serialize each individual object in the arrayList or should I serialize the whole arrayList because I know that ArrayLists are serializable.
Also, how would I send it from a server to a client. I'm thinking of using ObjectOutputStream on the server side. But I think my instructor wants each and every object to be serialized.
How would I serialize each object and then add it to the ArrayList. After adding it to the ArrayList, I'd need to send the ArrayList to client which after receiving it, will de-serialize each object and read it.