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
The following code will compare each item with other list of items using contains() method.Length of for loop must be bigger size() of bigger list then only it will compare all the values of both list.
List str = new ArrayList();
str.add("first");
str.add("second");
str.add("third");
List str1 = new ArrayList();
str1.add("first");
str1.add("second");
str1.add("third1");
for (int i = 0; i
Output is true true false