title: removing duplicates from singly linked list in order
body: <p>So I have a list of 0.1,3.0,4.5,-1,3.0,-10.0,3.0,3.0
  I am supposed to get a list of 0.1,3.0,4.5,-1.0,-10.0 after the following code</p>
  
  <pre><code>public void removeDuplicates()
  {
      if (head == null)
          return;
  
      Node iter = head;
  
      while (iter != null)
      {
          Node currNode = iter;
          while (currNode != null &amp;&amp; currNode.next != null)
          {
              if (iter.value == currNode.next.value)
              {
                  currNode.next = currNode.next.next;
                  nItem--;
              }
              currNode = currNode.next;
          }
          iter = iter.next;
      }
  }
  </code></pre>
  
  <p>I even had it for a while until I fixed something and ran it, then realized something went wrong here as well.</p>
  
  <p>because I now get 0.1,3.0,4.5,-1.0,-10.0,3.0. why is the last 3.0 tagging along? I first thought it might have been looped over/wrapped around, but realized I didn't do anything of that sort. Suggestions on logic flow?</p>