In the Java Programming when we pass the all arguments from the varargs then how can i dispaly that argument value.. For example i saw a program something like this :
class var{
   static void dis (int...num) {
      System.out.println ("Number of Arguments = " + num.length);
      for (int x : num)
      System.out.println(x + " ");
   }
   public static void main (String args[]) {
      dis();
      dis(1, 2, 4, 6, 8, 10);
      dis(12, 14, 16, 18, 20);
   }    
}
In the above program what action is performing by for(int x : num) .
 
     
     
    