title: How to call a method from loaded class using classLoader?
body: <p>This is the code I use :</p>
  
  <pre><code>File urlclasspath = new File("C:/Users/ASUS/Desktop/semantics/semantics/bin");
              URL urlarray[] = new URL[1];
              urlarray[0] = urlclasspath.toURI().toURL();
  
              MyClassLoader mycl = new MyClassLoader(urlarray);
  
              Class myclass = mycl.loadClass("USAGE");
  
              Object obj = myclass.newInstance();
  </code></pre>
  
  <p>And the class I'm loading is <strong><em>USAGE</em></strong> and the method I want to call is <strong><em>main(String[] args)</em></strong></p>