Is it possible to swap two variables in Java?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1363186/is-it-possible-to-write-swap-method-in-java">Is it possible to write swap method in Java?</a>  </p>
</blockquote>



<p>Given two values x and y, I want to pass them into another function, swap their value and view the result. Is this possible in Java?</p>
