|
I didn't quite follow what you were trying to do, but in Java, Val is correct in that as far as Objects, a copy of the reference was passed. That means you're still working on the same object that was passed in. Primitives are passed by value, so changing an int inside a method won't change the value of that int at wherever it is outside of that method.
|