code: public T[] toArray(T[] tArray) {
          List<T> array = new ArrayList<T>(100);
          for (Iterator<T> it = iterator(); it.hasNext();) {
              T val = it.next();
              if (val != null) array.add(val);
          }
          return array.toArray(tArray);
      }
docs: Returns an array of non null elements from the source array.
  
  @param tArray the source array
  @return the array