// CSE 143, Autumn 2013 // Demonstrates the behavior of equals on a couple different Points import java.util.*; public class PointMain { public static void main(String[] args) { Point p1 = new Point(1, 2); Point p2 = new Point(1, 2); Point p3 = p2; System.out.println("p1 equals p2: " + p1.equals(p2)); System.out.println("p1 equals p3: " + p1.equals(p3)); System.out.println("p2 equals p3: " + p2.equals(p3)); } }