Posted on 2007-03-19
I have an arrayList which is populated from a text file.
I then change certain arrayList index elements .remove() and .add(i, newString). At the end of that I am still left with an arrayList.
What I am looking to do is turn that arrayList back into a string so it can be displayed on screen in a JTextArea before being saved back to a text file.
I did try:
String str = arrayList.toString();
But that produced:
[element1, element2, etc]
How can this be resolved ?