// Jeremy Lipschutz // Class that represents a 2D point in space public class Point { // Note that your classes that you write // should not have public fields! This class // does just to make it easier to use. public int x; public int y; // Constructs a new Point with the given x and y coordinates public Point(int x, int y) { this.x = x; this.y = y; } // Returns a String of the form "(x, y)" public String toString() { return "(" + x + ", " + y + ")"; } }