I want to write an ArrayList into a text file.
ArrayList
The ArrayList is created with the code:
ArrayList arr = new A
You might use ArrayList overloaded method toString()
toString()
String tmp=arr.toString(); PrintWriter pw=new PrintWriter(new FileOutputStream(file)); pw.println(tmp.substring(1,tmp.length()-1));