title: Adding multiple items at once to ArrayList in Java
body: <p>How can I add multiple items at once to an ArrayList?
  <code>ArrayList&lt;Integer&gt; integerArrayList = new ArrayList();</code> Instead of:
  <code>integerArrayList.add(1)</code>
  <code>integerArrayList.add(2)</code>
  <code>integerArrayList.add(3)</code>
  <code>integerArrayList.add(4)</code>
  ...</p>
  
  <p>I would like to: <code>integerArrayList.add(3, 1, 4, 2);</code> So that I wont have to type so much. Is there a better way to do this?</p>