System.getProperty(“line.separator”),功能和"\n"是一致的,但是此种写法屏蔽了 Windows和Linux的区别 ,更保险一些.
System.getProperty("line.separator")--Java换行符
最新推荐文章于 2023-07-13 11:09:21 发布
System.getProperty(“line.separator”),功能和"\n"是一致的,但是此种写法屏蔽了 Windows和Linux的区别 ,更保险一些.