title: How to create an ArrayList of Classes?
body: <p>I have some classes (<code>Car</code>, <code>Motorcycle</code>, <code>Train</code> ... etc) that extends from <code>class Vehicle</code>.
  From another Class I need to create an <code>ArrayList</code> of Classes for access only to those that inlude the <code>ArrayList</code>.</p>
  
  <p>The concept is similar to this, but obviously it doesn't work;</p>
  
  <pre><code>ArrayList&lt;Class&gt; vehicleType=new ArrayList&lt;Class&gt;();
  vehicleType.add(Class.forName("train"));
  </code></pre>
  
  <p>How can I solve it ? 
  Thanks</p>