Re: Using pointers in Java

From: Amey Samant (ameyas7_at_yahoo.com)
Date: 01/31/04


Date: 30 Jan 2004 19:27:15 -0800

hi sanjay
use wrapper classes
your code should be something like

double a,b,c;
Double a1,b1,c1;
a1=new Double(a);
b1=new Double(b);
c1=new Double(c);
.....
callMethod(a1,b1,c1);
a=a1.doubleValue();
b=b1.doubleValue();
c=c1.doubleValue();
....

have a look at java.lang.Double class for documentation

regards
amey