title: Pass class type as parameter to use in ArrayList?
body: <p>I need to write a java method which takes a class (not an object) and then creates an ArrayList with that class as the element of each member in the array.  Pseudo-code example:</p>
  
  <pre><code>public void insertData(String className, String fileName) {
        ArrayList&lt;className&gt; newList = new ArrayList&lt;className&gt;();
  }
  </code></pre>
  
  <p>How can I accomplish this in Java?</p>