file but there is no newline between objects, how can i add this?
Write a newline character after writing the elements
i already tried but nothing happens
Well how would we know what you tried if you don't share your code?
That doesn't explain anything tbh.
the problem is that the list contains json objects and its printed on a file
Use pretty print then, before converting your objects to json for printing. Java has good Json decoder/encoder
Обсуждают сегодня