Is it possible to call a method using a variable?
<p>In PHP (for example), you can use this way to call a function using a variable like this:</p>

<pre><code>$funcname = "print";
$funcname("Whatever..."); // Same as: print("Whatever...");
</code></pre>

<p>What is the way used in Java?</p>
