public boolean containsSection(Section s){
  for (int i=0; i < mTransitSectionList.size(); i++) {
    TransitSection ts=mTransitSectionList.get(i);
    if (ts.getSection() == s) {
      return true;
    }
  }
  return false;
}

public boolean containsSection ( Section s ) { for ( int i = 0 ; i < mTransitSectionList . size ( ) ; i ++ ) { TransitSection ts = mTransitSectionList . get ( i ) ; if ( ts . getSection ( ) == s ) { return true ; } } return false ; }
test if a section is in the transit
