public static <T>boolean addAll(Collection<? super T> c,T... a){
  boolean modified=false;
  for (int i=0; i < a.length; i++) {
    modified|=c.add(a[i]);
  }
  return modified;
}

public static < T > boolean addAll ( Collection < ? super T > c , T ... a ) { boolean modified = false ; for ( int i = 0 ; i < a . length ; i ++ ) { modified |= c . add ( a [ i ] ) ; } return modified ; }
adds all the specified elements to the specified collection .
