@Override
    public String toString() {
        if (reversed) {
            reverse();
        }
        Element tmp = firstElement;
        String result = "";
        while (tmp != null) {
            result += tmp.getValue() + " ";
            tmp = tmp.getNextElement();
        }
        return result;
    }