public class Cell { private int x; private int y; Cell(int x, int y) { this.x = x; this.y = y; } public int getX() { return x; } public int getY() { return y; } public String toString() { return String.format("(%d, %d)", x, y); } }