PPT Slide
/* in class SwapTester (cont’d) . . . */
public static void main (String argv[]) {
int x, y, z; x = 5; y = 10; z = y; y = 5;
System.out.println ("x=" + x + " y=" + y + " z=" + z);
System.out.println ("x==5 is " + (x==5));
System.out.println ("x==y is " + (x==y));
System.out.println ("y==z is " + (y==z));
System.out.println ("x=" + x + " y=" + y + " z=" + z);
Output for this portion of the program: