public class Brik { public int x, y; public Brik(int x, int y) { this.x = x; this.y = y; } public String toString() { return "Brik["+x+","+y+"]"; } }