title: Java (Android) re-ordering an object list
body: <p>I read the documentation on this, and I'm not totally clear.  I've zeroed in on the set method and I'm thinking that I would do reordering like this:</p>
  
  <pre><code>list.set(0,myObj);//Move first
  list.set(list.indexOf(myObj) - 1, myObj);//Move up
  list.set(list.indexOf(myObj) + 1, myObj);//Move down
  list.set(list.size() - 1, myObj);//Move last
  </code></pre>
  
  <p>The documentation at <a href="http://developer.android.com/reference/java/util/List.html" rel="nofollow">http://developer.android.com/reference/java/util/List.html</a> states that set returns the object that is displaced.  So that leads me to think that I then have to re-place that object.  Am I correct?  So after a set operation as I described I would have two references to the object in the list.  This would mean I'd have to loop down the list to place all the other object appropriately?</p>