A
Allen
In C++, we can do it like this:
void Square(int& value)
{
value *= value;
}
How can I do it in Java?
I try the following method, but it does not work.
void square(Integer value)
{
value = value * value;
}
void Square(int& value)
{
value *= value;
}
How can I do it in Java?
I try the following method, but it does not work.
void square(Integer value)
{
value = value * value;
}