slides/Point.java
author Christian Urban <urbanc@in.tum.de>
Wed, 07 Nov 2018 11:59:16 +0000
changeset 197 c3e39fdeea3b
parent 32 45557ad18ea6
permissions -rw-r--r--
update

public class Point {
  private final int x, y;
 
  public Point(int x, int y) {
    this.x = x;
    this.y = y;
  }
 
  public int x() { return x; }
 
  public int y() { return y; }
}