Source code for MulderScullyExample.java:

public class MulderScullyExample
{
	public static void main(String args[])
	{
		// MulderScullyExample
		int mulder = 10;
		int scully = 15;
		System.out.println(mulder);
		System.out.println(scully);
		int tmp = scully;
		scully = mulder;
		mulder = tmp;
		System.out.println(mulder);
		System.out.println(scully);
	}
}

Output from MulderScullyExample.java:

10 15 15 10

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the MulderScullyExample application at the momement. You need to compile and run the source code first.

To run this program:


Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR