title: Java ArrayList add item outside current size
body: <p>Wondering whether there is an efficient way to add an item to Java's ArrayList at a bigger position than its current size:</p>
  
  <p>Scenario:</p>
  
  <pre><code>   ArrayList&lt;Item&gt; items = new ArrayList&lt;Item&gt;;
     ... let's say I add three elements
  </code></pre>
  
  <p>Now I would like to add an item at position 10 (leaving items from 3 to 10 to null)</p>
  
  <pre><code>  items.add(10,newItem);  // item.size() == 3 
  </code></pre>
  
  <p>Is there an efficient way resizing/filling an ArrayList with nulls?</p>
  
  <p>Java's implementation makes size field private :-(..</p>