javaSystem.getProperty("user.dir")和replaceAll()

发布时间:2019-08-11 05:49:42

imagePath = System.getProperty("user.dir")+"/bin/image/background.jpg" ; bgImage = ImageIO.read(new File(imagePath.replaceAll("\\\\", "/")));
System.getProperty("user.dir")+"/bin/image/background.jpg"这句话是什么意思,什么情况下使用?
imagePath.replaceAll("\\\\", "/")参数是\\\\是什么意思?为什么要这样使用?
不要复制粘贴,自己的简单几句话即可。。

推荐回答

还没有选出推荐答案,请稍候访问或查看其他回答!
以上问题属网友观点,不代表本站立场,仅供参考!