title: ArrayList resizing
body: <p>I have an ArrayList object for which I know the exact size. Is there any way to specify that the ArrayList should not extend its capacity?</p>
  
  <pre><code>List&lt;String&gt; list = null;
  int size = getSize(); // gets the exact number of elements I want
  
  list = new ArrayList&lt;String&gt; (size);
  
  for (int i = 0; i &lt; size; i++) {
      list.add("String num: " + i);
  }
  </code></pre>
  
  <p>I don't want the ArrayList to re-size because that takes time which I want to avoid wasting. </p>