In C# there is the static property Environment.Newline that changed depending on the running platform.
Is there anything similar in Java?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As of Java 7 (and Android API level 19):
Documentation: Java Platform SE 7
For older versions of Java, use:
See https://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html for other properties.