转自:http://blog.sina.com.cn/s/blog_707577700100nv74.html

标题所写的代码能获得当前系统的换行符。

不要随便用 \n\r    \n    \r,因为他们在不同操作系统有不同的表示。
如果在java代码中把它们写死了,那么java跨平台运行的特性就没有了。

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-12-03
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2021-06-24
  • 2022-01-27
  • 2021-07-18
  • 2021-11-25
相关资源
相似解决方案