title: How to add an Object to an ArrayList?
body: <p>i am trying to read from an SQLite-db, put the results into an Object of the custom-type Container, put the content of the Container into an ArrayList that i can build a listview filled by the arraylist. 
  I am stuck at the point where i try to pass the filled Container-object to the ArrayList:</p>
  
  <pre><code>ArrayList&lt;Container&gt; myListContent = new ArrayList&lt;Container&gt;();
  { 
  Container conSelected = db.readContainer(i);
  
  int s1 = conSelected.getId();
  Log.i("LISTE", "id = " + s1);
  
  String s2 = conSelected.getVorname();
  Log.i("LISTE", "vorname = " + s2);
  
  String s3 = conSelected.getName();
  Log.i("LISTE", "name = " + s3);
  
  // Container to the ArrayList  
  //THIS NEXT COMMAND IS TROUBLING ME. ALL THREE GIVE THE SAME LOG
  //myListContent.add(conSelected);
  //myListContent.add(new Container(conSelected.getId(), conSelected.getVorname(), conSelected.getName()));
  //myListContent.add(new Container(conSelected));
  
  Log.i("LISTE", "line = " + myListContent); 
  }
  
  //this.myAdapter = new ListActivity(this, R.layout.row, myListContent); 
  </code></pre>
  
  <p>my Logcat says:</p>
  
  <pre><code>03-11 18:17:43.336: I/LISTE(7477): id = 1
  03-11 18:17:43.336: I/LISTE(7477): vorname = Fred
  03-11 18:17:43.336: I/LISTE(7477): name = Einsner
  03-11 18:17:43.336: I/LISTE(7477): line = [null]
  ...
  03-11 18:17:43.375: I/LISTE(7477): id = 6
  03-11 18:17:43.375: I/LISTE(7477): vorname = Wolf
  03-11 18:17:43.375: I/LISTE(7477): name = Sechsland
  03-11 18:17:43.375: I/LISTE(7477): line = [null, null, null, null, null, null]
  </code></pre>
  
  <p>can anyone help me with this? i am still a rookie :(             </p>