title: How to have List Iterator start at a given index?
body: <p>I have a linked list and I need to make method that returns an iterator at a given point in the list. I currently have an iterator that starts at the head:</p>
  
  <pre><code>public Iterator&lt;E&gt; iterator( )
  {
      return new ListIterator();
  }
  </code></pre>
  
  <p>All I have for the other one is:</p>
  
  <pre><code>public Iterator&lt;E&gt; iterator(int x )
  {
      return new ListIterator();
  }
  </code></pre>
  
  <p>I'm not sure how to go about utilizing the given position(x) that won't affect my ListIterator constructor which starts at head. </p>
  
  <p>I tried using a for loop to get to "x" but realized that wouldn't tell the iterator to start there, so I'm quite stumped. </p>
  
  <p>Edit:</p>
  
  <pre><code>public ListIterator()
          {
              current = head; // head in the enclosing list
          }
  </code></pre>