title: Delete consecutives values in ArrayList of Int
body: <p>I have created an <code>ArrayList</code> with about 30 000 values, after been sorted, I have lot of consecutive values, for example:</p>
  
  <p>22001 22002 22003 22004 22010 22011 22020</p>
  
  <p>And I want to have : 22001 22004 22010 22011 22020</p>
  
  <pre><code>ArrayList&lt;Long&gt; l = new ArrayList&lt;Long&gt;(); // with my values
  Collections.sort(l);
  ArrayList&lt;Long&gt; liste = new ArrayList&lt;Long&gt;();
  </code></pre>