Can you tell the differences between the two sentences?解决方法

   阅读
Can you tell the differences between the two sentences?
Path resolve(Path other)

Resolve the given path against this path.

If the other parameter is an absolute path then this method trivially returns other.If other is an empty path then this method trivially returns this path. Otherwise this method considers this path to be a directory and resolves the given path against this path. In the simplest case, the given path does not have a root component, in which case this method joins the given path to this path and returns a resulting path that ends with the given path. Where the given path has a root component then resolution is highly implementation dependent and therefore unspecified.


the info with respect to Path is here

An object that may be used to locate a file in a file system. It will typically represent a system dependent file path.

A Path represents a path that is hierarchical and composed of a sequence of directory and file name elements separated by a special separator or delimiter. A root component, that identifies a file system hierarchy, may also be present. The name element that is farthest from the root of the directory hierarchy is the name of a file or directory. The other name elements are directory names. A Path can represent a root, a root and a sequence of names, or simply one or more name elements. A Path is considered to be an empty path if it consists solely of one name element that is empty. Accessing a file using an empty path is equivalent to accessing the default directory of the file system. Path defines the getFileName, getParent, getRoot, and subpath methods to access the path components or a subsequence of its name elements. 

为毛我觉得red high-light这两句是矛盾的?求高手解惑,谢谢!!

------解决方案--------------------
用google翻译看看
阅读
上一篇:求见教 java实验哦 下一篇:返回列表