I’m printing ArrayLists.toString() to a file and this is the result
[FirstLine
, SecondLine
, ThirdLine
]
I would like to remove the [ ] and , from my output.
Should I use a for loop to print the content of my ArrayList or is there an alternative way ?
thanks
If you don’t want to use third-party libraries, you can just use
StringBuilderand a for-each loop.