public void add(T x) throws IOException {
  serializer.write(x,dos);
  size++;
}

public void add ( T x ) throws IOException { serializer . write ( x , dos ) ; size ++ ; }
adds a new element at the end of this iterable .
