View Single Post
Old 05-05-2004, 09:44 AM   #7 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
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.
__________________
GitS
Belisarius is offline   Reply With Quote