1 public class Point {
2 private final int x, y;
3
4 public Point(int x, int y) {
5 this.x = x;
6 this.y = y;
7 }
8
9 public int x() { return x; }
10
11 public int y() { return y; }
12 }