I\'m having trouble with what I thought should be a pretty simple problem.
I need to compare every item in an arrayList with every other item in the the list without com
What's the problem with using for loop inside, just like outside?
for
for (int j = i + 1; j < list.size(); ++j) { ... }
In general, since Java 5, I used iterators only once or twice.