title: how to return more than one process in one method to the main method in java
body: <p>is it possible to make more than one calculation in one method and return all the values of the array to be sent again to another method that will print / display them</p>
  
  <p>that is the call statement in the main method</p>
  
  <pre class="lang-java prettyprint-override"><code>process_g(rate, hours, overtime, emp_num);
  </code></pre>
  
  <p>i will be sending the values of these variables to a method and call them again and <code>emp_num</code> is the array size.</p>
  
  <p>that is the process method</p>
  
  <pre><code>public static double process_g(double rate[], double hours[],double overtime[], int emp_num)
   {
     double STtax = 0, FEDtax = 0, union = 0, net = 0, Tgross = 0, Agross = 0, repeat = 999;
     double[]gross = new double[emp_num];
    for(int i = 0; i &lt; emp_num; i++)
    {
      gross[i] = (rate[i] * hours[i]) + overtime[i];
      STtax = gross[i] * 0.06;
      FEDtax = gross[i] * 0.12;
      union = gross[i] * 0.01;
      net = gross[i] - (STtax + FEDtax + union);
      Tgross = Tgross + gross[i];
      Agross = Tgross / (i+1);
    }
   }
  </code></pre>
  
  <p>after sending the array values to the main method i want to sent them to another method which will print them.</p>
  
  <p>so i wrote this in the main method</p>
  
  <pre><code>output(emp_num, emp1, emp2, emp3, hours, rate, overtime, gross, STtax, FEDtax, union, net, Tgross, Agross);
  </code></pre>
  
  <p>all the inputs are declared and correct my only problem is to return and call the <code>process_g</code> method in the main method</p>