The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

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 ints

Posted by karthik on January 22, 2001 at 10:29 PM

hi kishori,

thanks a lot for your reply. I understand that Integer is immutable , i mean I gave Integer just as an example.But i was wondering if we can just swap the refernce (not the value), i mean just make "a" point to what "b" was pointing to thro' a similar swap() function.

thanks
karthik.




Replies:
  • A path Ivan Villanueva January 23, 2001 at 4:52 PM (1)
    • Re: karthik January 23, 2001 at 10:00 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us