I need to use a platform-independent new line character in my Java code to replace \n. Is there a way to do this?
\n
Use String.format("%n")
String.format("%n")
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Use
String.format("%n")