Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
swapping in Java
Posted by karthik on January 22, 2001 at 7:49 AM
hi, can anyone tell me how to swap values in Java? I thought java is pass by value, so it's not possible but someone told me that there's a solution. Integer a = new Integer(1); Integer a = new Integer(2); swap(a,b); swap(Integer m, Integer n){ ...?? } now a --> 2 b -->1 thanks in advance karthik.
Replies:
- swapping values in JAVA Soumya Ranjan Rath September 10, 2001 at 6:45 AM
(3)
- Swapping ints Kishori Sharan January 22, 2001 at 9:43 AM
(3)
- Swapping ints karthik January 22, 2001 at 10:29 PM
(2)
- A path Ivan Villanueva January 23, 2001 at 4:52 PM
(1)
- Re: karthik January 23, 2001 at 10:00 PM
(0)
|