title: Create collection of N identical elements from one element using Java 8 streams
body: <p>I want to create N identical element collection for my test. Something like this:</p>
  
  <pre><code>List&lt;Future&lt;Void&gt;&gt; failedFutures = Lists.newArrayList();
  for (int i = 0; i &lt; 10; i++) {
    failedFutures.add(failedFuture);
  }
  return failedFutures;
  </code></pre>
  
  <p>Is there a way how to do it in Java 8 streams in one line, i.e. to return directly the collection?</p>