@Override public Object[] toArray(){
  return newArray(new Object[size()]);
}

@ Override public Object [ ] toArray ( ) { return newArray ( new Object [ size ( ) ] ) ; }
returns all the elements in an array . the result is a copy of all the elements .
