最佳答案
如何在Java 7中从String对象创建java.nio.file.Path对象?
即。
String textPath = "c:/dir1/dir2/dir3";
Path path = ?;
其中?是缺少的使用textPath的代码。