Kinda like dynamic function in java/android
<p>I am coming from PHP to Java and I have some questions about "dynamic" functions. </p>

<p>Kinda like in php where you can do an <code>include(VARNAME.".php");</code> and if varname is <code>a</code> it'll include <code>a.php</code> if its <code>x</code> it'll include <code>x.php</code>. </p>

<p>I wanna do that in Java but with functions.<br>
Kinda like I have a varname and I want to include a function. So if varname is <code>Test</code> it'll include <code>test()</code> but I have a bunch of functions and its a nuisance to do </p>

<pre><code>if(varname == "x"){ x(); }. 
</code></pre>

<p>Is there any easy way to do it?</p>
