LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-10-2004, 01:07 PM   #1
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 443

Rep: Reputation: 30
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.
 
Old 11-10-2004, 01:17 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
http://www.javaworld.com/javaworld/j...0526-pass.html
 
Old 11-10-2004, 01:35 PM   #3
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 443

Original Poster
Rep: Reputation: 30
haha thanks,
 
Old 11-10-2004, 02:18 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ / Passing a variable by reference to a class member function. sepulture Programming 12 11-15-2005 10:23 PM
passing variables by reference in javascript djgerbavore Programming 2 06-07-2005 11:34 PM
Problem passing string::size_type by reference (C++) timhardy Programming 2 04-24-2005 05:14 PM
Bash Script Passing variable to Function nutthick Programming 2 02-02-2005 05:15 AM
passing java parameters to a unix script nephilim Programming 25 10-22-2003 10:51 AM


All times are GMT -5. The time now is 11:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration