What does it mean by "follow a link" and "walk a tree"?
<p>(I'm now a freshman to Java.)</p>

<p>Below are the text in Ivor Horton's Beginning Java</p>

<p>"To determine whether a Path object references a file or a directory, you can use the static isDirectory() and isRegularFile() methods in the Files class. With both methods the first argument is the Path object you are interested in. You can specify NOFOLLOW_LINKS as the optional second argument if you do not want <strong>links to be followed</strong>."</p>

<p>"The java.nio.file.FileVisitor interface specifies methods that you can use to <strong>walk through a tree</strong> of directories and files. T is the type of file reference, usually type Path. The java.nio.file.SimpleFileVisitor class implements the methods in the FileVisitor interface that simply visits all ﬁles in a tree and re-throws any I/O exceptions that occur."</p>

<p>Can anyone tell me what does it mean by "follow a link" and "walk a tree"? Please give me a code example if possible, thanks in advance!</p>
