<div dir="auto">Hello <span class="gmail_chip gmail_plusreply" dir="auto" style=""><a href="mailto:core-libs-dev@openjdk.org" style="">@core-libs-dev</a></span>,<div dir="auto"><br></div><div dir="auto">I have an instance of java.nio.file.Path to represent a root folder. I then create many other instances of Path that refer to subfolders of that root folder -- oftentimes, many levels deep. To do this, I use Path.resolve(String).</div><div dir="auto"><br></div><div dir="auto">However, I often find myself writing 4 or 5 layers deep of Path resolution.</div><div dir="auto"><br></div><div dir="auto">rootPath</div><div dir="auto">.resolve("src")</div><div dir="auto">.resolve("main")</div><div dir="auto">.resolve("java")</div><div dir="auto">.resolve("someModule")</div><div dir="auto">.resolve("somePackage")</div><div dir="auto">;</div><div dir="auto"><br></div><div dir="auto">I would much prefer to just use varargs, and list them all up front, as opposed to having to call resolve over and over.</div><div dir="auto"><br></div><div dir="auto">rootPath.resolve("src", "main", "java");</div><div dir="auto"><br></div><div dir="auto">And I am ignorant about performance, but maybe there is a performance benefit to be gained here? It appears that I don't need to create multiple instances of Path anymore.</div><div dir="auto"><br></div><div dir="auto">Thank you for your time and consideration.</div><div dir="auto">David Alayachew</div></div>