title: Best way to reverse a java.util.LinkedList (in place if possible)
body: <p>I want to reverse a <code>java.util.LinkedList&lt;Integer&gt;</code> using the available methods.<br>
  Looking in the methods provided and the <code>Iterators</code> I couldn't see an option other than the following:  </p>
  
  <pre><code>int i = list.size();  
  int pos = 0;  
  while(i-- &gt; 1){  
       Integer n = list.removeLast();  
       list.add(pos++, n);          
  } 
  </code></pre>
  
  <p>But surely there must be a better way. I mean it is not a good idea to modify a list outside of an iterator, but I couldn't see how I could use one here without having to create a new list.<br>
  Is there a better way?     </p>