<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/** An instance is a point (x, y) in the plane */
public class Point {
    /** The x and y coordinates of a point */
    private double x;
    private double y;
    
    /** Constructor: a point (b, c) */
    public Point(double b, double c) {
        x= b;
        y= c;
    }
    
    /** = a representation (x, y) of this point */
    public String toString() {
        return "(" + x + ", " +
                     y + ")";
    }
    
}</pre></body></html>