I have to print a Array List in a text file. I need a output in separate line but I got in same line.
Example: My expected output in text file: bat ball print my actual output is : [bat,ball,print]
my console it print line by line anyone help me to out of this issue thank you