title: How should I concatenate arrays
body: <p>I am using a function that returns some integers</p>
  
  <pre><code>int[] return;
  </code></pre>
  
  <p>This function is inside a loop like this</p>
  
  <pre><code>public static int[] toEOBArray(double[] tempVal) 
  {
      int[] out;
      for (int i = 0; i &lt; 10; i++)
      {
          out = fixArray(tempVal[i]);
      }
      return out;
  }
  </code></pre>
  
  <p>What I want is as new arrays come from <code>fixArray</code> to add them to the previous results, so in the end I have a big array that will contain all the small arrays resulting from <code>fixArray</code></p>
  
  <p>What is the most efficient way of doing this?
  My main problem is not knowing how to initialize the array that is to hold all the values.</p>