Java - Variable Argument (varargs)

> Procedural Languages > Java

1 - About

3 - Workaround

To require that callers to a varargs parameter pass at least 1 argument

method(String first, String... more)

Example: Paths.get

Advertising

4 - Documentation

lang/java/varargs.txt · Last modified: 2019/11/02 11:25 by gerardnico