Call a method when class name not known at compile time
<p>I have a number of sub-games, SubGame1, SubGame2 etc. Each is derived from a SubGame class and implements a static String getDescription() function.</p>

<p>I want to access these descriptions, e.g. SubGame1.getDescription(), SubGame2.getDescription() etc.</p>

<p>However I want to use a code loop and not all the subgames will exist.</p>

<p>How can I call getDescription() for a sub game when I only know the game number. Something like:</p>

<pre><code>String description = Class.forName(this.getPackageName()+".SubGame"+subGameNo.getDescription();
</code></pre>

<p>but that returns:
    The method getDescription() is undefined for the type Class&lt; capture#5-of ?></p>

<p>Any ideas?</p>
