title: Difference between node.prev.next = ... and node =
body: <p>For the code shown, what exactly would the difference be. From my understanding it should return the current.data value and change the pointer for current to current.next for both. Additionally, can anyone explain the intricacies of current.prev.next = ... and current = ...in general? DoubleLinkedLists, still confuses me a little. Thank you!</p>
  
  <pre><code>public T next() {
      if (!hasNext()){
          throw new NoSuchElementException();
      }
      T data = current.data;
      current = current.next;
      return data;
  }
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>public T next() {
      if(!hasNext()) {
          throw new NoSuchElementException();
      }
      current = current.next;
      return current.prev.data;
  }
  </code></pre>