/*
 * PointExplorer.java
 *
 * A client program for the Point class that tests the Point class'
 * functionality.
 *
 * Author: S-111 Course Staff
 */

import java.util.*;

public class PointExplorer {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);

        Point p0 = new Point();
        System.out.println("p0's coordinates are " + p0);   // calls toString()
        System.out.println();

        Point p1 = new Point(3, 5);
        System.out.println("p1's coordinates are " + p1);   // calls toString()
        System.out.println();

        Point p2 = new Point(3, 5);
        System.out.println("p2's coordinates are " + p2);   // calls toString()
        System.out.println();

        System.out.println("p1 == p2 (should be false): " + (p1 == p2));
        System.out.println("p1.equals(p2) (should be true): " + p1.equals(p2));
        System.out.println("p0.equals(p2) (should be false): " + p0.equals(p2));
        System.out.println();

        System.out.println("flipping p1...");
        p1.flip();
        System.out.println("p1 now has coordinates " + p1);
        System.out.println();
    }
}
