I have the following two methods in a class:

public void Test(int i){
    System.out.println("1");
}
public void Test(Integer i){
    System.out.println("2");
}

The following line of code

this.getClass().getMethod("Test",Integer.class).invoke(this, 10);

prints 2 , how to make it print 1?

Edit
Report