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