Where to use resolve() and relativize() method of java.nio.file.Path class?
I cannot understand how resolve() and relativize() method works? Path resolve(Path) resolves the given path against this path. Path relativize(Path) constructs a relative path of the given path against this path . These are reverse operations. Path resolve(Path other) In the general use case of resolve(), you want to return a new Path object where … Read more