title: How to move specific item in array list to the first item
body: <p>For example : A list</p>
  
  <p>A B C D E</p>
  
  <p>Given C , Switch to </p>
  
  <p>C A B D E</p>
  
  <p>Notice that the array size will change, some items may removed in run times</p>
  
  <pre><code>Collections.swap(url, url.indexOf(itemToMove), 0);
  </code></pre>
  
  <p>This statement is not working because it output C B A D E not C A B D E , how to fix it?</p>
  
  <p>Thanks. </p>