Java 换行符 line separator

Java About 121 words

说明

JDK7之前使用getProperty来获取,JDK7后使用系统封装好的静态方法获取。

JDK7 前

System.getProperty("line.separator")

JDK7 后

System.lineSeparator()
Views: 4,673 · Posted: 2019-08-14

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh