title: How can I create a list with N objects?
body: <p>I am trying to create a list of objects with n elements. I am trying to do this in the most java 8 way as possible. Something similar to the question asked for c# here :
  <a href="https://stackoverflow.com/questions/18122528/creating-n-objects-and-adding-them-to-a-list">Creating N objects and adding them to a list</a></p>
  
  <p>Something like this:</p>
  
  <pre><code>List &lt;Objects&gt; getList(int numOfElements)
  {
  
  }
  </code></pre>