0
]Anserd] New line \n
https://code.sololearn.com/cMO9TgASSJUw/?ref=app The symbol is recognized because no \n - s are seen in the output file. No new lines are created, though. What's the matter?
2 Respuestas
+ 12
Use \r\n instead of \n or use the value of System.getProperty("line.separator") for the line break. Different OS use different separators. The getProperty method gets the actual used line separator from the OS.
+ 2
Thanks. I've edited my code a little tiny bit.