Saving/ Reading an arrayList of Points to/from a file
<p>Q1 - I have a string like this - </p>

<p>strPoints = "[Point(10,20), Point(20,30), Point(30,40)]"</p>

<p>What is the best way to convert it into arrayList like this - </p>

<p>arrPoints = [Point(10,20), Point(20,30), Point(30,40)]</p>

<p>Q2 - If I have an arrayList of points like this - 
arrPoints = [Point(10,20), Point(20,30), Point(30,40)]</p>

<p>What is the best way to store it into a file so that it can be easily readable later? - </p>

<p>a) Store whole arrayList as a string in some .txt file</p>

<p>b) Store whole arrayList as an object in some .ser/ .dat file. Could you please provide an example for serialization/de-serialization in this case?</p>

<p>c) Store points as a node in some .xml file</p>

<p>d) Other way</p>

<p>Regards,</p>

<p>Prasoon</p>
