Vararg Parameters in Functions
suggest changeSyntax
- Vararg Keyword:
vararg
is used in a method declaration to indicate that a variable number of parameters will be accepted. - Spread Operator: An asterisk (
\*
) before an array that is used in function calls to “unfold” the contents into individual parameters.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents