在java中存在一些转义字符,比如"\n"为换行符,但是也有一些JDK自带的一些操作符

    比如 : System.getProperty("line.separator")

    这也是换行符,功能和"\n"是一致的,但是此种写法屏蔽了 Windows和Linux的区别 ,更保险一些.

     学无止境呀!


参考:System.getProperty("line.separator") 是什么意思?

相关文章:

  • 2021-12-04
  • 2021-12-19
  • 2021-11-17
  • 2021-11-19
  • 2021-12-02
  • 2021-12-08
  • 2021-08-01
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-05-07
  • 2021-12-24
  • 2021-05-22
  • 2022-12-23
相关资源
相似解决方案