title: Display the value of Varargs
body: <p>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 :</p>
  
  <pre><code>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);
     }    
  }
  </code></pre>
  
  <p>In the above program what action is performing by <code>for(int x : num)</code> .</p>