print arraylist element?
<p>how do i print the element "e" in arraylist "list" out?</p>

<pre><code> ArrayList&lt;Dog&gt; list = new ArrayList&lt;Dog&gt;();
 Dog e = new Dog();
 list.add(e);
 System.out.println(list);
</code></pre>
