Can I make the method dynamically called in Java?
<p>for example, I have a variable called ("method"), it is a String, but I would like to do something like this....</p>

<pre><code>obj.method(); //The object called the method();
</code></pre>

<p>But I would like to change the .method to a dynamic method, which means, I want to call the method base on the variable. For example, if I the I do something like this:</p>

<pre><code>method = ".toString()";
</code></pre>

<p>Is there any method to help me to pass this string to the object, and the object will call the </p>

<pre><code>obj.toString();
</code></pre>

<p>If the method is </p>

<pre><code>method = ".toChar()";
</code></pre>

<p>I want it called the </p>

<pre><code>obj.toChar();
</code></pre>

<p>How can I do so? Thank you.</p>
