Varargs

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: 2% [?]

Related posts:

  1. Variadic Functions