Exercise : 2.42. Instructions: A bad swap

  • Find and open the BadSwap Java program in the exercises2 package.
  • Run the code if you like, providing various values for the inputs.
  • Fill in the comments to explain why the provided code does not swap the values of x and y.