// A class that makes use of the Point class public class UsePoint { public static void main(String[] args) { Point p1 = new Point(5, 6); Point p2 = new Point(10, 11); Point p3 = p1; p1.translate(5, 5); System.out.println("p1: " + p1); System.out.println("p2: " + p2); System.out.println("p3: " + p3); if (p1 == p3) { System.out.println("p1 == p3"); } else { System.out.println("p1 != p3"); } if (p2 == p3) { System.out.println("p2 == p3"); } else { System.out.println("p2 != p3"); } if (p2.equals(p3)) { System.out.println("p2 equals p3"); } else { System.out.println("p2 not-equals p3"); } } }