Pass the method parameter by value problem
Why the output is still "x = 20" ?
Should I use wrapper Integer class since the method
multi() pass the parameter by value, not by reference?
public class ManagerTest
{
public static void main(String[] args)
{int x = 20;
ManagerTest mt = new ManagerTest();
mt.multi(x);
System.out.println("x = " + x);
}
public void multi(int y)
{
y = y*y;
}
}

