!!!为什么System.getProperty(File.separator)的输出为null?!!!!!!!!1

uruly 2005-04-03 08:53:31
为什么System.getProperty(File.separator)的输出为null
请教大家
谢谢
...全文
775 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
飞行的兔子 2005-04-03
  • 打赏
  • 举报
回复
System.getProperty("File.separator")
加上引号
quickpoint 2005-04-03
  • 打赏
  • 举报
回复
public class TestEnv {
public static void main(String[] args ) {
System.out.println( System.getProperty("file.separator"));
}
}

在windows下结果:
\

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧