How do I write a string array to a file?
How do I write a string array to a file? “how to write an arraylist to text file in java” Code Answer import java. io. FileWriter; … FileWriter writer = new FileWriter(“output.txt”); for(String str: arr) { writer. write(str + System. lineSeparator()); } writer. close(); How do I write a string Read more…