title: Java, method not applicable for arguments
body: <p>I'm trying Java and got this code:</p>
  
  <pre><code>    package mysecondclass;
  
      public class MySecondClass {
            public static void main(String[] args) {
                mysecondclass("String", "String1", "String2");
  
            }
  
          //private static MySecondClass(final String string, final String string2, final String string3) }
              // TODO Auto-generated method stub
  
  
          private static void mysecondclass(String string, String string2, String string3; }
              // TODO Auto-generated method stub
  
  
          public MySecondClass(String object, String object1, String object2) {
                 System.out.println(object);
                 System.out.println(object1);
                 System.out.println(object2);
               }
          }
  </code></pre>
  
  <p>Now is the problem that I get an error and I've no idea how to resolve.</p>
  
  <blockquote>
    <blockquote>
      <p>Exception in thread "main" java.lang.Error: Unresolved compilation problem:     The method mysecondclass(String, String) in the type
      MySecondClass is not applicable for the arguments (String, String,
      String)</p>
    </blockquote>
    
    <p>at mysecondclass.MySecondClass.main(MySecondClass.java:5)</p>
  </blockquote>