title: Android: Convenience method to convert arraylist<object> to arraylist<element>?
body: <p>Assuming we have an object that looks like this:</p>
  
  <pre><code>public class myObject {
  
  private String firstElement;
  private Integer secondElement;
  ...
  
  }
  </code></pre>
  
  <p>I have an arraylist of this object and I want to create an arraylist of only secondElement. Is there a convenience method to get all the secondElements out of all of the myObjects, or will I have to loop manually through the arraylist in order to create it? </p>