title: How to Get attributes list from ArrayList of objects
body: <p>Suppose I have an object that looks like:</p>
  
  <pre><code>public class Obj {
  String foo;
  String bar;
  }
  </code></pre>
  
  <p>If I create an arraylist of type Obj and populate it, is there a way I can return a list of all the objects in the array's foo attribute from the ArrayList? </p>
  
  <p>EDIT:  I should have been more clear, I did not want to do this via iteration</p>