windows linux同样适用的换行符,路径分隔符

String newLine= System.getProperty("line.separator");
File.separator

获取工程路径:

System.getProperty("user.dir")
posted on 2017-03-22 11:05  life_start  阅读(187)  评论(0)    收藏  举报