Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java output array lists to file

import java.io.FileWriter;
...
FileWriter writer = new FileWriter("output.txt"); 
for(String str: arr) {
  writer.write(str + System.lineSeparator());
}
writer.close();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #output #array #lists #file
ADD COMMENT
Topic
Name
1+2 =