在Eclipse中是否可以使用没有多个斜杠的路径? [英] Is it possible to use a path without multiple slashes in Eclipse?
本文介绍了在Eclipse中是否可以使用没有多个斜杠的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我当前的问题是:
我正在研究一个Java应用程序,该应用程序需要一个ini文件(以其路径作为参数)来运行该应用程序.在该ini文件中,还有另一条路径,对于该应用程序而言,这非常重要.如何在没有多个斜杠的情况下使用此文件?
我很高兴收到任何答案.
Hello everybody,
my current problem is:
I''m working on a java application which needs an ini-file (given its path as parameter) to run the application. In that ini-file, there is another path, which is very important for this application. How can I use this file without multiple slashes?
I''m glad about any answers.
推荐答案
如果您正在使用该String值,则应该
-将其设置为对客户不可编辑的设置
-照顾好斜线.反斜杠不起作用-有时最好使用斜杠("/").否则,反斜杠(String.replaceAll())会加倍
If you''re working with that String value you should
- make it a setting not editable for customers
- take care of the slashes. Backslashes do not work - using slahes ("/") is sometimes a better option. Otherwise double the backslashes (String.replaceAll())
是的,有可能
我需要有关Java中双反斜杠和单反斜杠的帮助 [ ^ ]
Yes, it is possible
I need help with double and single backslashes in Java[^]
这篇关于在Eclipse中是否可以使用没有多个斜杠的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文