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[].
Nitwit, Blubber, Oddment, Tweak !!
0 Response to “Varargs”