Warning: compile with -Xlint:unchecked pops on this code!
<pre><code>import java.lang.reflect.Method;

public class ClassLoadingTester
{
    public static void main(String a[]){
        try{
            ClassLoader loader=new CustomClassLoader();
            Class c=loader.loadClass("AddClass");
            loader=null;
            Object o=c.newInstance();
            Method m=c.getMethod("getTwoNumbers",new Class[]{String.class,String.class});
            m.invoke(o,new Object[]{"2","3"});

        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
</code></pre>

<p>This code snippet generates a warning when i compile in java.
I think it pertains to this line,</p>

<pre><code>Method m=c.getMethod("getTwoNumbers",new Class[]{String.class,String.class});
</code></pre>

<p>When I attempt to put <code>&lt;String&gt;</code> like this <code>new Class&lt;String&gt;[]{String.class,String.class}</code></p>

<p>It generates an error saying <code>generic array type</code> I'm doing my code in BlueJ.</p>

<p>But when I leave the code as is it generates that irritating warning ^^.</p>

<p>I just want to get rid of that warning what should I do with that line of code?</p>
