title: Populate ListView from List<Object>
body: <p>Basically I have a list of objects of class Ingredient which looks like this:</p>
  
  <pre><code>class Ingredient {
      public int id;
      public String name;
  
      public Ingredient(String name) {
          this.name = name;
      }
  }
  </code></pre>
  
  <p>so each object from list have a name.</p>
  
  <p>Now to use ArrayAdapter I need to have a List of strings filled with names.
  Is there any way to use ArrayAdapter with my list of Ingredients?
  This is how it looks right now</p>
  
  <pre><code>List&lt;Ingredient&gt; ingredientsList= new ArrayList&lt;Ingredient&gt;();
  ingredientsList.add(new Ingredient("foo"));
  ingredientsList.add(new Ingredient("bar"));
  </code></pre>