Is there a Newline constant defined in Java like Environment.Newline in C#?

问题:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章