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
In some cases this is the best way because your code may have change something and j=i+1 won't check that.
for (int i = 0; i < list.size(); i++){ for (int j = 0; j < list.size(); j++) { if(i == j) { //to do code here continue; } }
}