// Hunter Schafer, CSE 143 // This class represents a simple 2 dimensional point public class Point { public int x; public int y; // constructs a Point at the origin public Point() { this(0, 0); } // constructs a point at the given x-coordinate and y-coordinate public Point(int x, int y) { this.x = x; this.y = y; } // returns a String representation of this Point's coordinates public String toString() { return "(x=" + x + ", y=" + y + ")"; } }