请问,这是什么意思System.getProperty("line.separator");谢谢System.getProperty("line.separator");

来源:学生学帮网 编辑:学帮网 时间:2024/06/01 01:43:45

请问,这是什么意思System.getProperty("line.separator");谢谢
System.getProperty("line.separator");

在这个平台下行与行之间的分隔符
相当于“\n”
还有很多其它参数
os.name Operating system name
os.arch Operating system architecture
os.version Operating system version
file.separator File separator ("/" on UNIX)
path.separator Path separator (":" on UNIX)
line.separator Line separator ("\n" on UNIX)
user.name User's account name
user.home User's home directory
user.dir User's current working directory