Just like you have variadic functions in C, Java has the Varagrs
. Its usage is as simple as this :
public List<string> getModifiers(String... arg) {
// arg is String[]
}
And the wonderful thing is that the arg is a String[].
Popularity: 4% [?]
Related posts:
0 Responses to “Varargs”