@@ -0,0 +1,533 @@
+// Use varargs with standard arguments.%0Aclass VarArgs2 %7B%0A  %0A  // Here, msg is a normal parameter and v is a varargs parameter.%0A  static void vaTest(String msg, int ... v) %7B%0A    System.out.println(msg + v.length);%0A    System.out.println(%22Contents: %22);%0A    %0A    for(int i=0; i %3C v.length; i++)%0A      System.out.println(%22  arg %22 + i + %22: %22 + v%5Bi%5D);%0A    %0A    System.out.println();%0A  %7D%0A  %0A  public static void main(String args%5B%5D) %7B%0A    vaTest(%22One vararg: %22, 10);%0A    vaTest(%22Three varargs: %22, 1, 2, 3);%0A    vaTest(%22No varargs: %22);%0A  %7D%0A%7D%0A

Use varargs with standard arguments