title: Is there a way to avoid loops when adding to a list?
body: <p>I was wondering a code like this:  </p>
  
  <pre><code>List&lt;String&gt; list = new ArrayList&lt;String&gt;();
  for(CustomObject co : objects) {
      list.add(co.getActualText());
  }
  </code></pre>
  
  <p>Can it be written differently? I mean of course at some point there will be a loop but I am wondering if there is an API usage I am ignoring</p>