title: Java-8 Pass multiple parameters of method into a stream
body: <p>Consider I have this method which take multiple parameters, and I want to make some simple calculation like <strong>count</strong>, <strong>sum</strong>, <strong>average</strong>, <strong>min</strong>, <strong>max</strong>, Take a look at this native example :</p>
  
  <pre><code>public static void calculate(int... param) {
      int sum = 0;
      for (int i : param) {
          sum += i;
      }
      System.out.println(sum);
  }
  </code></pre>
  
  <p>How can I pass this parameters <code>(int... param)</code> in a Java-8 Stream and make this calculation?</p>