title: execute method where method names are in a List
body: <p>I have a List with all the methods in it example</p>
  <pre><code>List(&quot;method1&quot;,&quot;method2&quot;,&quot;method3&quot;)
  </code></pre>
  <p>and I have the definition for all those methods mentioned in above list</p>
  <pre><code>def method1(){ //definition}
  def method2(){ //definition}
  def method3(){ //definition}
  </code></pre>
  <p>Instead of specifying those functions to run one by one like below</p>
  <pre><code>method1()
  method2()
  method3()
  </code></pre>
  <p>I want to loop through <code>List(&quot;method1&quot;,&quot;method2&quot;,&quot;method3&quot;)</code> and execute those methods</p>