Showing posts with label VarArgs Methods. VarArgs. Show all posts
Showing posts with label VarArgs Methods. VarArgs. Show all posts

Methods with Variable Number of Arguments

  • 0
     In my last article, I discussed how before the introduction of VarArgs, programmers had to deal with the requirement of methods. Here, I am going to discuss the VarArgs Methods, that allow you to deal with the requirement of variable number of arguments in a method. A variable length argument is specified by three periods. For example
static void VarMethod(int...v)