public void addAll(Collection<? extends T> c){
  elements.addAll(c);
  length=c.size();
}

public void addAll ( Collection < ? extends T > c ) { elements . addAll ( c ) ; length = c . size ( ) ; }
adds all the given elements in the stack .
