codice:
    int capacity = 1000;
    Object[]  s = new Object[capacity];     int puntatore=0;
    DLNode temp = header.getNext();
    while (temp.getNext() != null){
      s[puntatore] = temp.getElement();
      temp= temp.getNext();
      puntatore++;
    }