question: private boolean containsDate ( Calendar [ ] dates , int year , int month , int day ) { if ( dates == null ) return false ; for ( Calendar c : dates ) { if ( year < c . get ( Calendar . YEAR ) ) break ; if ( year > c . get ( Calendar . YEAR ) ) continue ; if ( month < c . get ( Calendar . MONTH ) ) break ; if ( month > c . get ( Calendar . MONTH ) ) continue ; if ( day < c . get ( Calendar . DAY_OF_MONTH ) ) break ; if ( day > c . get ( Calendar . DAY_OF_MONTH ) ) continue ; return true ; } return false ; }
target:  Checks whether the given data is contained in an array of dates