title: Fastest way to convert ArrayList<Integer> into int[]
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/960431/how-to-convert-listinteger-to-int-in-java">How to convert List&lt;Integer&gt; to int[] in Java?</a>  </p>
  </blockquote>
  
  
  
  <p>In Java, is below the fastest solution:</p>
  
  <pre><code>public convert(ArrayList&lt;Integer&gt; IntegerList) {
  
      int s = IntegerList.size();
      int[] intArray = new int[s];
      for (int i = 0; i &lt; s; i++) {
          intArray[i] = IntegerList.get(i).intValue();
      }
  }
  </code></pre>
  
  <p>?</p>