src/demo/Maze.java
public void connectTo(Cell to, int direction) {
            Neighbor neighbor = new Neighbor(this, to);
            neighbors[direction] = neighbor;
            to.neighbors[getOppositeDirection(direction)] = neighbor;
        }
/**
         * Connects cell to neighboring cell.
         *
         * @param to cell that this cell is connected to.
         * @param direction direction (up, down, left, right) where neighboring cell is located.
         */
Connects cell to neighboring cell.
@param to cell that this cell is connected to.
@param direction direction (up, down, left, right) where neighboring cell is located.
Connects cell to neighboring cell . @param to cell that this cell is connected to . @param direction direction ( up down left right ) where neighboring cell is located .
public void connectTo(Cell to, int direction) {
            Neighbor neighbor = new Neighbor(this, to);
            neighbors[direction] = neighbor;
            to.neighbors[getOppositeDirection(direction)] = neighbor;
        }
public void connectTo ( Cell to , int direction ) { Neighbor neighbor = new Neighbor ( this , to ) ; neighbors [ direction ] = neighbor ; to . neighbors [ getOppositeDirection ( direction ) ] = neighbor ; }
Connects cell to neighboring cell.
Connects cell to neighboring cell .