class Node { static int x,y; private String coord; private Node east,west,north,south; /*Node(Node east, Node west, Node north, Node south, int x, int y){ this.east=east; this.west=west; this.north=north; this.south=south; this.x+=x; this.y+=y; coord="x"+x+" , y"+y; }*/ public Node(int x, int y){ this.x+=x; this.y+=y; coord="x"+x+" , y"+y; } public Node getEast(){ return east; } public Node getWest(){ return west; } public Node getNorth(){ return north; } public Node getSouth(){ return south; } public void setEast(Node nod){ east=nod; } public void setWest(Node nod){ west=nod; } public void setNorth(Node nod){ north=nod; } public void setSouth(Node nod){ south=nod; } public String getCoords(){ return coord; } }