Path用于来表示文件路径或者文件:APathrepresents a path that is hierarchical and composed of a sequence of directory and file name elements separated by a special separator or delimiter。
构造Path对象
(1)使用Paths工具类的两个static方法
Path path =Paths.get("C:/","Xmp");Path path2 =Paths.get("C:/Xmp");URI u =URI.create("file:///C:/Xmp/dd");Path p =Paths.get(u);