How to make method calls dynamically in Java
<p>I'm trying to make a list of function calls. I want to be able to call a specific method by simply choosing the method from an array.</p>

<p>So for example if I want to call, drawCircle() and that method is in the first index than I could say runMethod[0].</p>

<p>Here's what I have so far. I've made an interface with two inputs:</p>

<pre><code>public interface Instruction {  
   void instr( int a, int b );
} 
</code></pre>

<p>In my other class I have a list of methods (or should they be classes that implement Instruction?). I want to be able to call any of these methods from a list, like so:</p>

<pre><code>instList[0].mov( 1, 3 );
instList[2].add( 4, 5 );
</code></pre>

<p>and so on. Hope that was clear enough. Thanks in advance.</p>
