title: Java 8 - fill ArrayList
body: <p>Is there a better way to fill an <code>ArrayList</code> like this (I have done it like this in Java 7):   </p>
  
  <pre><code>List&lt;ScheduleIntervalContainer&gt; scheduleIntervalContainers = new ArrayList&lt;&gt;();
  scheduleIntervalContainers.add(scheduleIntervalContainer);
  </code></pre>