import java.io.*;

/**
 * an example of call by value.
 * @author	Qusay H. Mahmoud
 */

public class SwapNumbers {
   
   public static void swap(int x, int y) {
     int tmp = x;
     x = y;
     y = tmp;
   }

   public static void main(String argv[]) {
     int x = 5, y = 7;     
     System.out.println("Before swap, x is: "+ x);
     System.out.println("Before swap, y is: "+ y);

     swap(x, y);
     System.out.println("After swap, x is: "+ x);
     System.out.println("After swap, y is: "+ y);

  }
}
