//This file shows how Strings are reference variables
//Usage of the assignment operator = (equals) changes references

 //import java.awt.Point;
 
 class ReferencesReview
 {
 	public static void main(String[] arguments) 
 	{
 		Point pt1, pt2;
 		pt1 = new Point(100, 100);
 		pt2 = pt1;
 		
 		pt1.x = 200;
		pt1.y = 200;
		System.out.println("Point1: " + pt1.x + ", " + pt1.y);
		System.out.println("Point2: " + pt2.x + ", " + pt2.y);
		
		System.out.println();
		System.out.println("Changing Point2...");
		
		pt2.x = 1;
		pt2.y = 1;
		System.out.println();
		System.out.println("Point1: " + pt1.x + ", " + pt1.y);
		System.out.println("Point2: " + pt2.x + ", " + pt2.y);
	}
}
