如何创建 java.nio.file.Path
Java 7 中 String
对象的对象?
即
String textPath = "c:/dir1/dir2/dir3";
Path path = ?;
其中 ?
是使用 textPath
的缺失代码。
最佳答案
关于string - 在 Java7 中从字符串创建路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16919501/