public void getData(int i){
System.out.println("1");
}
public void getData(Integer i){
System.out.println("2");
}
The following line of code
this.getClass().getMethod("getData",Integer.class).invoke(this, 10);
prints 2 , how to make it print 1?
intandIntegerparameters when invoking method via reflection" would be accurate.