I have two vectors v1,v2 which contains strings in them, I want to compare contents of v1 at index i with the contents of vector v2 at index j. If i use v1.get(i).equals(v2.get(j)); always returning false, even it contains common terms in both vectors. please sugest solution for my problem.