title: Initialize ArrayList with a range of integer values avoiding loops
body: <p>I would like to initialize an ArrayList with a range of integer values. 
  This is what I want to avoid: </p>
  
  <pre><code>ArrayList&lt;Integer&gt; numbers = new ArrayList&lt;&gt;();
  for(int i = 0; i &lt; x; i++){
      numbers.add(i);
  }
  </code></pre>
  
  <p>I found rangeClosed function for IntStream: </p>
  
  <pre><code>IntStream.rangeClosed(0, instance.getNumVertices()-1);
  </code></pre>
  
  <p>But I think that the conversiont to ArrayList won't be worth it. </p>
  
  <p>I'm looking for efficiency... </p>