public void merge(Intersection other){
  for (Enumeration e=other.getRoads(); e.hasMoreElements(); ) {
    Road road=(Road)e.nextElement();
    road.changeIntersection(other,this);
    addRoad(road);
  }
  other.clear();
  setModified(true);
}

public void merge ( Intersection other ) { for ( Enumeration e = other . getRoads ( ) ; e . hasMoreElements ( ) ; ) { Road road = ( Road ) e . nextElement ( ) ; road . changeIntersection ( other , this ) ; addRoad ( road ) ; } other . clear ( ) ; setModified ( true ) ; }
merge another intersection with this one . all the roads of the other intersection are removed and added onto this .
