System.getProperty("line.separator")
2014-11-17 09:36
253 查看
标题所写的代码能获得当前系统的换行符。
不要随便用 \n\r \n \r,因为他们在不同操作系统有不同的表示。
如果在java代码中把它们写死了,那么java跨平台运行的特性就没有了。
不要随便用 \n\r \n \r,因为他们在不同操作系统有不同的表示。
如果在java代码中把它们写死了,那么java跨平台运行的特性就没有了。
相关文章推荐
- System.getProperty("line.separator")
- System.getProperty("line.separator") 的含义
- System.getProperty("line.separator") 是什么意思?
- System.getProperty("line.separator") 是什么意思?
- System.getProperty("line.separator")
- java中System.getProperty("line.separator") 意思
- 关于 System.getProperty("line.separator")
- System.getProperty("line.separator")
- System.getProperty("user.dir") 和File.separator的用法
- System.getProperty("line.separator")
- Java 换行 \n 与 System.getProperty("line.separator");
- 获得程序当前路径System.getProperty("user.dir")
- System.getProperty("user.dir")方法
- Java利用System.getProperty("file.encoding")获取编码分析
- 获得程序当前路径System.getProperty("user.dir")
- 关于System.getProperty("user.dir")
- System.getProperty("user.dir"); 获得系统属性
- java获取服务器、工程路径等相关信息System.getProperty("user.dir")
- JAVA System.getProperty("") 获取当前操作系统信息