Skip to content

Instantly share code, notes, and snippets.

@iskernel
Created July 13, 2013 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iskernel/5991393 to your computer and use it in GitHub Desktop.
Save iskernel/5991393 to your computer and use it in GitHub Desktop.
How to get line separator in a OS-independent way in Java.
//Equivalent of C# Environment.Newline
System.getProperty("line.separator");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment