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?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 2 of 2
Thread: pass reference to method
|
Click Here to Expand Forum to Full Width |