public static <T>void filter(Collection<T> src_,Predicate<T> pred_,List<T> result_){
  for (  T t : src_) {
    if (pred_.test(t)) {
      result_.add(t);
    }
  }
}

public static < T > void filter ( Collection < T > src_ , Predicate < T > pred_ , List < T > result_ ) { for ( T t : src_ ) { if ( pred_ . test ( t ) ) { result_ . add ( t ) ; } } }
filter a collection according to some predicate , placing the result in a list
