class Node{ private int id; String spot; String des; Node east = null; Node west = null; Node south = null; Node north = null; int eastId=-1; int westId=-1; int southId=-1; int northId=-1; Node(){} Node(int id){ this.id = id; } Node(int id, String spot, String des){ this.id = id; this.spot = spot; this.des = des; } public int getId(){ return id; } public void setId(int id){ this.id = id; } public Node getEast(){ return this.east; } public void setEast(Node east){ this.east = east; } public Node getWest(){ return this.west; } public void setWest(Node west){ this.west = west; } public Node getSouth(){ return this.south; } public void setSouth(Node south){ this.south = south; } public Node getNorth(){ return this.north; } public void setNorth(Node north){ this.north = north; } public String getSpot(){ return spot; } public String toString(){ return des; } }