package varargs;

/**
 * Accessing to varargs, same like array index
 */
public class AccessVararg {
    public static void doIt(int ... nums){
        System.out.println(nums[1]);
    }

    public static void main(String[] args) {
        // Prints 5
        doIt(4,5,6);
    }
}

@@ -18,17 +18,32 @@
 %0A/**%0A * 
-A
+Like an array, a
 ccessing
@@ -57,25 +57,18 @@
 args
-, same like array
+ goes with
  ind
@@ -102,31 +102,24 @@
 ararg %7B%0A    
-public 
 static void 
@@ -239,28 +239,8 @@
     
-// Prints 5%0A        
 doIt
@@ -247,16 +247,28 @@
 (4,5,6);
+ // Prints 5
 %0A    %7D%0A%7D

Index used in varargs