title: JAVA getConstructor throws NoSuchMethodException
body: <p>I'm new in JAVA 
  and I'm trying to learn <a href="http://tutorials.jenkov.com/java-reflection/index.html" rel="noreferrer">reflection</a>.
  I want to get specific constructor (picking the example form <a href="http://tutorials.jenkov.com/java-reflection/constructors.html" rel="noreferrer">here</a>) 
  from my class : </p>
  
  <pre><code>public class Example1 {
      public Example1() {
      }
  
      public Example1(int i) {
      }
  
      public Example1(String s) {
          System.out.println("using param = " + s);
      }
  
      public static void main(String[] args) throws Exception {  
          Class&lt;?&gt;[] paramTypes = String.class.getClasses();
          Constructor&lt;Example1&gt; ctor = Example1.class.getConstructor(paramTypes);
          ctor.newInstance("test");
      }
  }
  </code></pre>
  
  <p>I get <code>NoSuchMethodException</code> when trying to instantiate <code>ctor</code></p>
  
  <p>What am I missing here? </p>