Add varargs to Path::resolve?
Jaikiran Pai
jai.forums2013 at gmail.com
Tue Jun 3 03:58:09 UTC 2025
Hello David,
On 03/06/25 5:17 am, David Alayachew wrote:
> ...
>
> I would much prefer to just use varargs, and list them all up front,
> as opposed to having to call resolve over and over.
>
> rootPath.resolve("src", "main", "java");
>
This is already possible since Java 22
https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/nio/file/Path.html#resolve(java.lang.String,java.lang.String...)
-Jaikiran
More information about the core-libs-dev
mailing list