record Point(int x, int y) {}

void main() {
    Point point = new Point(3, 4);
    int x = point.x();
    int y = point.y();
    IO.println("x is " + x + ", y is " + y);
}

// From Groundwork, chapter 10 (ch10-records), box 5.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch10_05.java
