import java.awt.*;               // needed for Point (below)
public class BasicTypesVsObjects {
   public static void main(String[] args) {
	   double double1=31.0, double2;
		double2 = double1;
		double1 = double1+5.0;
		System.out.println(double1+","+double2);
		Point p = new Point(3,5);  // creates a point object
		Point p2 = p;              // p2 and p refer to the *same* object
		p.translate(2,3);          // move p right 2 and up 3
		System.out.println("p2 is at ["+p2.getX()+","+p2.getY()+"]");
	}
}