
class Point {

	private int x = 0;
	private int y = 0;

	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public void setX(int x) {
		this.x = x;
	}
	
	public void setY(int y) {
		this.y = y;
	}

	public String toString() {
		return String.format("%d,%d", x, y);
	}

	public boolean equals(Object obj) {
		if (!(obj instanceof Point)) {
			return false;
		}

		Point that = (Point) obj;

		if (this.x == that.x && this.y == that.y) {
			return true;
		}

		return false;
	}
}
