title: Name a method using the value of a variable
body: <p>So say I had a variable like this:</p>
  
  <pre><code>String var = "name"
  </code></pre>
  
  <p>instead of making a method like so -</p>
  
  <pre><code>Public void name{
      System.out.println("This is a method called name");
  }
  </code></pre>
  
  <p>I want to create like this - </p>
  
  <pre><code>Public void var{
      System.out.println("This is a method called name");
  }
  </code></pre>
  
  <p>but instead of the method being called var, I want it to be called name</p>
  
  <p>The reason I need this:</p>
  
  <p>I'm building a lexer/parser, and this reads methods from another (made up) language, so I want to transfer these methods into java with the same names to be called upon later on</p>