 <p>Use <a href="http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#subList%28int,%20int%29" rel="nofollow"><code>subList(int fromIndex, int toIndex)</code></a>:</p> <pre><code>List&lt;Double&gt; arrayList = ...; int length = arrayList.size(); for(int i = 0; i &lt; length - 1; i++) { Double db1 = arrayList.get(i); for(Double db2 : arrayList.subList(i + 1, length)) { // ... } } </code></pre>