title: ArrayList reflection
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/106336/how-do-i-find-out-what-type-each-object-is-in-a-arraylistobject">How do I find out what type each object is in a ArrayList&lt;Object&gt;?</a><br>
    <a href="https://stackoverflow.com/questions/1886677/knowing-type-of-generic-in-java">Knowing type of generic in Java</a>  </p>
  </blockquote>
  
  
  
  <p>How can I retrieve the Type <code>Foo</code> from my <code>ArrayList</code> using the reflection in Java?</p>
  
  <pre><code>ArrayList&lt;Foo&gt; myList = new ArrayList&lt;Foo&gt;();
  </code></pre>