public synchronized void addAll(Collection c){
  for (Iterator iter=c.iterator(); iter.hasNext(); ) {
    addInternal((Task)iter.next());
  }
}

public synchronized void addAll ( Collection c ) { for ( Iterator iter = c . iterator ( ) ; iter . hasNext ( ) ; ) { addInternal ( ( Task ) iter . next ( ) ) ; } }
add all tasks in a collection , in iterator order .
