I'd like to initialize 2 parameter in a method, in C++, I can do like this:

void setParam(int* width, int* height)
{
*width = getWidth();
*height = getHeight();
}
int w, h;
setParam(&w, &h);




How Can I do this in Java?