问题:
In C# there is the static property Environment.Newline that changed depending on the running platform. 在C#中,静态属性Environment.Newline根据运行平台而改变。
Is there anything similar in Java? Java中有类似的东西吗?
解决方案:
参考一: https://en.stackoom.com/question/12Gp参考二: https://stackoom.com/question/12Gp