title: Java 8 fill array with supplier
body: <p>Is there a way to fill an array using java 8 <a href="http://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html" rel="noreferrer"><code>Supplier</code></a> ? </p>
  
  <p>I would like to write:</p>
  
  <pre><code>Supplier&lt;Object&gt; supplier = () -&gt; new Object();
  Object[] array = new Object[size];
  Arrays.fill(array, supplier);
  </code></pre>
  
  <p>Note:
  I know i could write my own method.</p>