Hey all -
I have created an ArrayList as follows:
ArrayList<Object> arList = new ArrayList<Object>();
The arraylist contains the following - every time it will have the same data ... either filled or considered "";
String - transaction type
String - name
String - ssn
String - address
int - code
How can i take this arrayList and seriliaze it, and pass it from a 'client' through sockets, to a 'server'?
I have read about this online all over the place - but as for now i have come up with something like:
ObjectOutputStream oos = new ObjectOutputStream();
But i get a precompile error here saying: "The constructor ObjectOutputStream() is not visible"
And i have no clue what that means...
I assume i create an output object, then do outObj.writeOut(arList):
Then on the server side use an input object and use:
But i am still pretty clueless, if someone could open my eyes as to how this would be plausible - i would be very very appreciative!