title: Calling methods based on parameters in Java
body: <p>I don't know how exactly to word this, but I will give it a shot.</p>
  
  <p>I want to call a method based on a parameter. I'm not sure if this is possible but I surely hope it is because it would save about 200 lines of code and a hassle! Please let me know if I need to be more specific about anything!</p>
  
  <pre><code>public static void example(String a){
          System.(a).println("Hello")
     }
  
  public static void main(String[] args){
          example("out");
      }
  </code></pre>
  
  <p>Thanks for your help!</p>