title: Java Reflection: "java.lang.NoSuchMethodException"
body: <p>I am trying to get the method from another class using reflection, but for some reason it keeps on giving me a no such method exception. These are the classes im using: </p>
  
  <p>ScriptTable class: </p>
  
  <pre><code>for(Class&lt;?&gt; script: Scripts) {
          System.out.println(script.getName());
          try {
              Method c = script.getMethod("scriptInfo()", script);
          } catch(Exception e) {
              e.printStackTrace();
          }
      }
  </code></pre>
  
  <p>DummyScript class</p>
  
  <pre><code>    public String[] scriptInfo() {
      String[] ScriptInfo = {"DummyScript", "Chris", "Does nothing atm"};
      return ScriptInfo;
  }
  </code></pre>