Results 1 to 1 of 1
Thread: Pass by ref. A work around?
- 02-05-2008, 07:25 PM #1
Member
- Join Date
- Feb 2008
- Posts
- 6
- Rep Power
- 0
Pass by ref. A work around?
Hello,
I'm horrified to learn that in Java all variables are passed to methods by value.
I want to write a function that will fit an exponential function(y = A*exp(B*x) ) to some data. In C++ I would just pass the data along with references to variables for A and B to a method and have the method manipulate A and B.
In java it seems I need to have two different methods; one to return A and one to return B.
Is there a way around this?
Thanks
Similar Threads
-
Question on how to pass text of a pulldown
By Brucifer in forum New To JavaReplies: 0Last Post: 04-02-2008, 11:23 PM -
how to pass array in java?
By sivasayanth in forum New To JavaReplies: 3Last Post: 01-13-2008, 04:33 PM -
Cannot pass the correct property value to a form
By piterskiy74 in forum Web FrameworksReplies: 0Last Post: 12-11-2007, 03:17 PM -
How to pass an html variable as an applet value
By fred in forum Java AppletsReplies: 1Last Post: 08-06-2007, 03:28 AM -
I can't seem to pass the value of a string variable into a string array
By mathias in forum Java AppletsReplies: 1Last Post: 08-03-2007, 10:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks