LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   passing passing variable in Java as reference (http://www.linuxquestions.org/questions/programming-9/passing-passing-variable-in-java-as-reference-253297/)

djgerbavore 11-10-2004 01:07 PM

passing passing variable in Java as reference
 
I know there isn't a "direct way" of passing variable by reference in Java but i was wonder if there is a hacked way or so way to pass variable as reference?

thanks,
djgerbavore,

the only way i can think of is put a variable in an array or make an object, and make a reference to the array or something like that.

Matir 11-10-2004 01:17 PM

http://www.javaworld.com/javaworld/j...0526-pass.html

djgerbavore 11-10-2004 01:35 PM

haha thanks,

Matir 11-10-2004 02:18 PM

No problem. I wish java had a lot of nice things c does, but oh well.


All times are GMT -5. The time now is 06:54 PM.