how can I pass a double value by reference in java?
example:
Double a = 3.0; Double b = a; System.out.println(\"a: \"+a+\" b: \"+b); a = 5.0; System.
You can try MutableDouble from commons-lang.
But not that this has nothing to do with pass-by-reference - you are not passing anything.