Add extended class to ArrayList
<p>I want to add an object of class Special (which extends Mundane) to an ArrayList by using the add function.</p>

<p>What I have tried:</p>

<pre><code>ArrayList&lt;Class&lt;? extends Mundane&gt;&gt; all = new ArrayList&lt;Class&lt;? extends Mundane&gt;&gt;();
all.add(Arrays.asList(
  specialThingy = new Special()
));
</code></pre>

<p>This gives me folowing error:
The method add(Class) in the type ArrayList> is not applicable for the arguments (List)</p>

<p>Can someone help me?</p>