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

Related posts:

  1. Variadic Functions
  2. My Code Rules – Code Documentation Check
  3. Yet Another Transition
  4. Playlist Generator

0 Responses to “Varargs”


  • No Comments

Leave a Reply