title: How to get Class Object of an ArrayList type?
body: <p>I am trying to access a method through reflection, and the <code>getMethod()</code> function requires a class for the parameter type. The parameter is a Class object, and I'm not sure how to get this from an <code>ArrayList&lt;String&gt;</code> type. Here is my current code, where I would want to change <code>String.class</code>:</p>
  
  <pre><code>Method m = o.getClass().getMethod(method, String.class);
  </code></pre>